Capital One interview question

Write an algorithm that detects a loop in a LinkedList