Amadeus interview question

Smart pointer implementation specially shared pointer