Dhruv Gheewala's submission of Root the Tree | CodeChef