Parth Mittal's submission of ATM | CodeChef