Sparsh Kumar Sinha's submission of GCD2 | CodeChef