A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.
Solution:
Use a hash to record each node in the origin list as a key The value is the deep copy of corresponding node. Go through the list, for each node and random reference, check the map, if the key was included in the map, get the value, or create a new node with the same label, and put it into the map.