Solve CodeJam magic trick problem