ujjwal kumar's submission of Mahasena | CodeChef