InterviewBit Problems   Trees and Sum of Distances : Solved