Pergunta de entrevista da empresa Infineon Technologies

How to detect a loop in linked list?