Solve JumpGame.