Datadog interview question

sliding window, buffers, debugging your solution