Workday interview question

Swap the nodes in Linked list