Swati Ranjan's submission of ATM | CodeChef