Pregunta de entrevista de Foundation Devices

Write a function that can detect a cycle in a linked list.