add O(1) solution of linked-list-cycle-ii