mayur's submission of Mahasena | CodeChef