Meta interview question

Implement an event emitter from scratch.