Karthik's submission of Paying up | CodeChef