Devesh Agarwal's submission of Modular GCD | CodeChef