Intel Corporation interview question

Find the longest path in a tree.