data structure and algorithms basic with linked list, used c++ and python exercise : give a linked list, swap two elements in linked list input : 1 2 3 4 5, swap(1,4) => output : 4 2 3 1 5