static boolean canJump(int[] a) {
        if (a.length == 0) return true;
        if (a.length == 1) return true;
        int max = a[0];
        for (int i = 1; i < a.length; i++) {
            if (max < i) return false;
            if (max >= a.length - 1) return true;
            max = Math.max(i + a[i], max);
        }
        return max >= a.length - 1;
    }
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
src/problems/medium/JumpGame.java