nauman mansuri's submission of ATM | CodeChef