Easy
Given a binary array nums, return the maximum number of consecutive 1s.
nums
1
Input: nums = [1,1,0,1,1,1] Output: 3
Input: nums = [1,0,1,1,0,1] Output: 2