Koichi Namekata's submission of Queries on Tree | CodeChef