ClickUp interview question

Implement an event-driven text processing system