Zero Filled Subarrays Count

Given an integer array nums, return the number of zero-filled subarrays. A zero-filled subarray is a contiguous subarray that consists only of zeros. Any nonzero value, including a negative value, breaks a zero streak.

Examples
Input: [0,0,0,2,0]
Output: 7
Hints
Related Problems

Zero Filled Subarrays Count

Given an integer array `nums`, return the number of zero-filled subarrays. A zero-filled subarray is a contiguous subarray that consists only of zeros. Any nonzero value, including a negative value, breaks a zero streak.