Pergunta de entrevista da empresa Microsoft

Question regarding moving window calculation in data stream algorithms