Amazon interview question

Find Indexes of a subarray with given sum