Naveen sati's submission of ATM | CodeChef