Domanda di colloquio di ING

Via a hackerrank online test - finding sub-array of an array with the element sum <= a given number.