Capgemini Engineering Interview Question

C++ friend class,