Domanda di colloquio di Flipkart

Finding the smallest path between any two nodes in a tree.