Pratham Software interview question

Event Emitter and its methods