Design a Pub/Sub System
Design a publish-subscribe system that allows components to subscribe to events and others to publish/broadcast those events to all registered subscribers. Implement the classes/components that handle the publish and subscribe logic.
Asked at:
Amazon