Gainsight Interview Question

Find subarray with given target sum