Qualcomm interview question

How do you detect a loop in Linked list?