Dinesh Goyal's submission of GCD2 | CodeChef