List Cycles


Given a linked list with the following interface:

Node* head();
Node* next();

Return true if the list has a cycle and false otherwise.