Pergunta de entrevista da empresa OpenText

Question related to sliding window and subarray sum