Goldman Sachs Interview Question

Q: subarray sum problem