sajal gupta's submission of ATM | CodeChef