Floyd's Tortoise and Hare Algorithm

Floyd's Tortoise and Hare algorithm is used to detect cycles in a linked list. It uses two pointers moving at different speeds to identify if a cycle exists and find its starting point.
Phase 1: Cycle Detection
Step 1: Initialize tortoise and hare at the start
Tortoise (Slow)
Hare (Fast)