hemanth baliji's submission of Mahasena | CodeChef