Add the solution to determine whether there's a cycle in a linked list.