Pregunta de entrevista de Expedia Group

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