UiPath Interview Question

It was a problem statement which boils down to shortest subarray with sum at least k.