Domanda di colloquio di Expedia Group

Finding given number sum within the array given--- minimum length sub array