solve linked_list_cycle