Gainsight interview question

Find subarray with given target sum