Question d’entretien chez Expedia Group

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