diwanshu suman's submission of Treeversion | CodeChef