Given an array of integers and an integer k, return the total number of continuous subarrays whose sum equals k.
nums = array of integers, k = target sum
Total count of subarrays summing to k
Example 1:
Input:
nums = [1,1,1] k = 2
Output:
2
Explanation:
There are 2 subarrays [1,1] summing to 2.