Ankit rawat's submission of ATM | CodeChef