Whenever you're ready, walk me through how you'd approach this.
Describe a data structure you would use to store rolling data, and explain the algorithmic complexity of your approach.
Clarify whether the rolling window is count-based or time-based, whether data arrives in order, and which operations must be supported. Explain insertion, expiration, querying, memory usage, and how your design changes if the window receives high-frequency updates or out-of-order events.