Dinesh Goyal's submission of A Special Tree | CodeChef