Amadeus Interview Question

length of the smallest subarray with positive sum