Capital One Interview Question

Write an algorithm that detects a loop in a LinkedList