This algorithm uses two pointers that move through a sequence at different speeds to detect a cycle if any. Commonly known as the Tortoise and the Hare Algorithm.
To run the tests execute the following command
$ruby tortoise_hare_test.rb
$ruby runners.rb