Question d’entretien chez Flipkart

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