Aakash Prakash's submission of Mahasena | CodeChef