Capgemini Interview Question

C++ design pattern