Domanda di colloquio di Bloomberg

Simple algorithm question, linked list with random pointers