Prashant Mahesh's submission of Gcd Queries | CodeChef