Rahul Ray's submission of Mahasena | CodeChef