Pregunta de entrevista de OpenText

Question related to sliding window and subarray sum