Create swapLeftAndRight.cpp