Loading problem…
Design a time-based hit counter tracking system.
Implement
hit(timestamp): Record a request event that occurred at the specified timestamp.getHits(timestamp): Return the total hits recorded within the past 300 seconds.(timestamp - 300, timestamp]).