Qualcomm interview question

Detecting loop in linked list