Pergunta de entrevista da empresa Tata Consultancy Services

How to find loop in link list? How to fix it?