Flipkart interview question

Find the smallest root with 2 nodes