Capgemini interview question

C++ basics, Design patterns