Queries with GCD | CodeChef