Zhang Yide's submission of Tree | CodeChef