C++ Solution
\nclass Solution \n{\n    public:\n    string breakPalindrome(string palindrome) \n    {\n        string res;\n        if (palindrome.size() == 1)\n            
```\nclass Solution \n{\n    public:\n    string breakPalindrome(string palindrome) \n    {\n        string res;\n        if (palindrome.size() == 1)\n            return res;\n        for (size_t i = 0; i < palindrome.size() / 2; i++)\n        {\n            if(palindrome[i] != \'a\')\n            {\n                palindrome[i] = \'a\';\n                return palindrome;                \n            }\n        }\n        palindrome[palindrome.size() - 1] = \'b\';\n        return palindrome;        \n    }\n};\n```
['C', 'C++']