Pregunta de entrevista de Joom

Write code to detect cyclic dependencies in a given dependency tree