Palash Chhalotre's submission of ATM | CodeChef