Zhang Yide's submission of Query on a tree VI | CodeChef