Pergunta de entrevista da empresa BJIT

How to detect if there is a cycle in a linked list.