Pergunta de entrevista da empresa BNP Paribas

Describe subject/observer pattern and show in C++ how to implement it.