Implement createEventBus() with:
subscribe(event, listener) — register a listener, returns an unsubscribe function.publish(event, data) — call all listeners for the event with data.solve drives your bus through a sequence of operations and returns
the call log: [[subscriberId, data], ...].
Operations:
['subscribe', event, id] — subscribe listener id to event['publish', event, data] — publish data to event['unsubscribe', id] — call the unsubscribe function returned for idSample tests