Meta Interview Question

Finding the longest path in a tree.