Pregunta de entrevista de Box

Was asked to implement an EventEmitter from scratch.