Question d’entretien chez Gainsight

Find subarray with given target sum