Amadeus Interview Question

Smart pointer implementation specially shared pointer