Jatin Garg's submission of Medel | CodeChef