Barclays interview question

Smallest subarray with minimum sum (50 marks)