class Solution { public: bool isPalindrome(string s) { // Start typing your C/C++ solution below // DO NOT write int main() function string ss; ss.assign(s.rbegin(),s.rend()); if(s==ss) return true; else return false; } };