Added swap case C++ solution