Algorithm to swap two nodes in a singly linked list. Take the linked list from user input.