Pregunta de entrevista de Better

related to sliding window array problems