Masoom Mittal's submission of Mahasena | CodeChef