LeetCode
Subarray Sum Equals K
Click
here
for an explanation.