CrediFi Interview Question

Detect a loop in a linked list