karan's submission of Paying up | CodeChef