Vivek Gupta's submission of Queries with Pairs | CodeChef