Akash Bhalotia's submission of Mahasena | CodeChef