Queries on tree again! Submissions | CodeChef