Capital One Interview Question

Given a linked list Implement a function that creates a deep copy of the list, in which each node has a pointer to the next node as well as a second pointer to some other node in the list.