Pregunta de entrevista de Amazon

Design a data structure that handles circular dependancy