refactor code
Linked List Cycle II