LeetCode
Binary Subarrays With Sum
Click
here
for an explanation.