Pergunta de entrevista da empresa Flipkart

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