Snowflake Interview Question

Graph based problem on finding the height of a tree