Tech Holding interview question

Event emitter NodeJs