Microsoft interview question

Question regarding moving window calculation in data stream algorithms