Alex's submission of Treeversion | CodeChef