Pregunta de entrevista de Microsoft

Question regarding moving window calculation in data stream algorithms