KLA interview question

Linked list with random connections