Meta Interview Question

Implement an event emitter from scratch.