I'm not sure why loops would be necessary. To join two linked lists, all that you need to do is point the last node of the first to the first node of the second.
the problem I'm working on call for the function to have a nested loop. the outher loop to handel the first list and check for duplicate numbers and the inner loop to handel the second list and to add or merge the list and then output to the screen