Pregunta de entrevista de Cadence Design Systems

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