16
Solution 1: std::reverse C++ 3 lines
string s = "hello";
reverse(s.begin(), s.end());
cout << s; // olleh
Solution 2: Two pointers C++ 6 lines
string s = "hello";
int i = 0, j = s.size() - 1;
while(i < j){
    swap(s[i], s[j]);
    i++; j--;
}

Note: reverse() needs #include <algorithm>.