Solution to Swap Nodes in Pairs