Workday Interview Question

Swap the nodes in Linked list