Solved JumpGameII - brute force

OJ says Time limit exceeded.