MSCI Interview Question

There's a array you have to find all Subarray of given sum.