Qualcomm Interview Question

Detect a loop in linked list