Solve APIO 2010 Commando
Simplify code for APIO 2010 Commando