KLA Interview Question

Linked list with random connections