Pranat Sharma's submission of Root the Tree | CodeChef