Maximum Consecutive Ones

Given a binary array nums, find the maximum number of consecutive 1s in the array.

1 1 0 [1 1 1] -> max = 3
Examples
Input: [1,1,0,1,1,1]
Output: 3
Hints

Maximum Consecutive Ones

Given a binary array `nums`, find the **maximum number of consecutive 1s** in the array.