create solution for Swap Nodes in Pairs