Pawan Pratap's submission of ATM | CodeChef