Alvarez & Marsal Interview Question

Find the longest path on tree.