Box Interview Question

Was asked to implement an EventEmitter from scratch.