Krishan Dhingra's submission of ATM | CodeChef