Intel Corporation Interview Question

Find the longest path in a tree.