Flipkart Interview Question

Find the smallest root with 2 nodes