BNP Paribas Interview Question

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