// Max Consecutive Ones — EASY
// Category: array
Given a binary array `nums`, return the maximum number of consecutive `1`s in the array.
**Constraints:**
- `1 <= nums.length <= 10⁵`
- `nums[i]` is either `0` or `1`.
Example: nums = [1,1,0,1,1,1]
Output: 3