Arvind Rachuri's submission of Mahasena | CodeChef