Add Swap Nodes in Pairs

two solutions