Create swapNodesInPair.cpp