Ankit Kumar's submission of Treeversion | CodeChef