Blue Origin Interview Question

Implement the functions recordEvent() and getEventsInLastSecond()