Add solution to linked list cycle ii