Mohd Faizan's submission of Mahasena | CodeChef