InterviewBit Problems   Longest path in a subtree : Solved