Meta interview question

Implement a basic EventEmitter.