Dataminr interview question

Implement an event emitter