Create swapNodesInPairs.cpp