ITC Infotech interview question

Smart Pointers - how shared pointer works?