Morgan Stanley interview question

C plus plus smart pointers