Aamir Baugwala's submission of ATM | CodeChef