Mayank Tuteja's submission of ATM | CodeChef