Implement an EventBus class with:
on(event, handler) — subscribe. Returns an unsubscribe function.emit(event, ...args) — call all handlers for the event.off(event, handler) — remove a specific handler.solve(ops) replays operations and returns all emissions captured.
Sample tests