Rohan Sachan's submission of Mahasena | CodeChef