题目要我们检查array[0]能不能跳到终点

canJump[i] 意味着从index i,能不能跳到index为length - 1的位置

induction rule:判断能不能跳到终点,或者能不能跳到一个可以到终点的中继站

TC:O(n^2)

SC: O(n)