Ayushman Mathur's submission of ATM | CodeChef