+ 6
Assuming you know what a palindrome is, the reverse() function from the <algorithm> header is used to reverse a string, in the following way
#include <string>
#include <algorithm>
int main() {
std::string s = "1234";
std::reverse(s.begin(), s.end());
// s now holds "4321"
}



