Max's submission of Ordering the Soldiers | CodeChef