Prateek's submission of Tree and Queries | CodeChef