Suryansh Agnihotri's submission of ATM | CodeChef