Srivaths P's submission of Mahasena | CodeChef