// Jump Game — MEDIUM
// Category: greedy
You are given an integer array `nums`. You are initially positioned at the **first index** and each element represents your maximum jump length from that position.
Return `true` if you can reach the last index, or `false` otherwise.
**Constraints:**
- `1 <= nums.length <= 10⁴`
Example: nums = [2,3,1,1,4]
Output: true