Flipkart interview question

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