Add solution to linked list cycle ii without using extra memory