Zhang Yide's submission of Travelling in a tree | CodeChef