CrediFi interview question

Detect a loop in a linked list