class Solution {
  public:
    bool judge(string str) {
        int len = str.length();
        for (int i = 0; i < len; i++) {
            if (str[i] != str[len - 1 - i])
                return false;
        }

        return true;
    }
};