Pergunta de entrevista da empresa Adobe

Traverse a directed graph with cycle, without having to implement hashcode() or equals() in the node class.