Solve JumpGameII.
Fix unused variable problem.