Dhruv Patel's submission of ATM | CodeChef