Rajvaibhav Rahane's submission of ATM | CodeChef