kartik verma's submission of ATM | CodeChef