Coffee Meets Bagel interview question

LeetCode moving average from data stream