Frage im Vorstellungsgespräch bei Amazon

Given a binary tree , find whether it contains a loop i.e. does it contain a node pointing to previous node.