Shubhodeep Chanda's submission of ATM | CodeChef