Actalent interview question

C++ smart pointers, OOP concepts