Check if the given string is a palindrome (A palindrome is a word, number, phrase, or other sequence of symbols that reads the same backwards as forwards)
bool isPalidrome(string s) {
return equal(s.begin(), next(s.begin(), s.size() / 2), s.rbegin());
}