zeroCount to 0, longestWindow to 0, and start to 0.i.zeroCount if nums[i] is 0.zeroCount is greater than 1, increment start and decrement zeroCount if nums[start] is 0.longestWindow with the maximum of its current value and i - start.longestWindow.