the solution of Swap Nodes in Pairs