Pergunta de entrevista da empresa Oracle

Given a linked list, check whether the linked list contains a loop. (Written Code)