Manoj Patidar's submission of Mahasena | CodeChef