Goldman Sachs Interview Question

DSA linked List loop detection