Meta interview question

Finding the longest path in a tree.