Pregunta de entrevista de Blue Origin

Implement the functions recordEvent() and getEventsInLastSecond()