Flipkart Interview Question

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