Capgemini Engineering interview question

C++ friend class,