[LC] Added solution to linked list cycle.