Goldman Sachs interview question

DSA linked List loop detection