Anant Bedi's submission of Mahasena | CodeChef