Kaushik Kumar Ghosh's submission of ATM | CodeChef