MAERSK interview question

c++ smart pointers