HARMAN interview question

C++, OOP