rajitha's submission of Mahasena | CodeChef