Blue Origin interview question

Implement the functions recordEvent() and getEventsInLastSecond()