Create a function that creates a copy of a list. The functionwill return the pointer to the new list.
Use the following incomplete function definition.
Node* copyList(Node* &head1) { // . . .}
Expert Answer
An answer will be send to you shortly. . . . .