Ananya Singh's submission of Mahasena | CodeChef