Yogesh Kumar's submission of Mahasena | CodeChef