Devesh Agarwal's submission of Commander | CodeChef