Snowflake interview question

Graph based problem on finding the height of a tree