Whenever you're ready, walk me through how you'd approach this.
Design a hit counter that removes hits after a certain point in time.
Implement the counter as a practical service or class with timestamp-aware expiration. Explain the API, data structure, cleanup strategy, concurrency behavior, and how you would test correctness under out-of-order and high-frequency requests.