Saksham Garg's submission of ATM | CodeChef