LeetCode

Number of Valid Subarrays

Click here for an explanation.