Arpan Mukherjee's submission of ATM | CodeChef