Samarth Gupta's submission of GCD | CodeChef