Rahil's submission of ATM | CodeChef