Morgan Stanley interview question

Implement the publisher-subscriber pattern and make it multi-threaded