Capgemini interview question

C++ design pattern