Vivek Kumar 's submission of Treeversion | CodeChef