Karthik's submission of KGP Summers | CodeChef