Koichi Namekata's submission of Travelling in a tree | CodeChef