Given a string, return the string with the first and second half swapped. If the string has odd length, leave the middle character in place. If the string length is less than 2, return the original.

Complete the following file:

prog.cpp

#include <iostream> #include <string> using namespace std; string reverseHalves(string s) {
}