// Max Consecutive Ones (with one flip) — EASY
// Category: sliding-window
Given a binary array `nums`, return the maximum number of consecutive `1`s in the array if you can flip at most one `0`.
**Constraints:** `1 <= nums.length <= 10^5`
Example: nums = [1,0,1,1,0]
Output: 4