Linked List Cycle

detect if it is cyclic