Harsh's submission of Mahasena | CodeChef