Anudeep interview question

Write the code for swapping two nodes in linked list.