Megasoft Interview Question

related to smart pointers