Copy List with Random Pointer

A linked list has next and random pointers. Return a deep copy of the list. Input is represented as [value, randomIndex] pairs.

Examples
Input: [[7,null],[13,0],[11,4],[10,2],[1,0]]
Output:
Hints

Copy List with Random Pointer

A linked list has next and random pointers. Return a deep copy of the list. Input is represented as [value, randomIndex] pairs.