Pergunta de entrevista da empresa Cadence Design Systems

How to implement shared pointer class. how will keep count of reference.