Indrajit Banerjee's submission of ATM | CodeChef