Vaibhav Puri's submission of Mahasena | CodeChef