Abhra Dasgupta's submission of ATM | CodeChef