Problem Description
We are given a binary array nums containing only 0s and 1s) and an integer goal.
The task is to return the number of non-empty contiguous subarrays whose elements sum up exactly to goal.
What is a Subarray?
A subarray is a contiguous part of the array, meaning