Amadeus Interview Question

C++ , smart pointer