Given an array where each element represents your maximum jump length from that position, determine whether you can reach the last index starting from the first.
Example 1
Explanation: Jump 1 step from index 0 to 1, then 3 steps from index 1 to the last index (4).
Example 2
Explanation: Every path leads to index 3, whose value is 0 — from there, index 4 is unreachable.
Example 3
Explanation: A single-element array starts already at the last index, so no jump is needed.
Code execution is coming soon.