simple and easy C++ solution 😍❤️‍🔥
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n\nclass Solution {\npublic:\n    string breakPalindrome(string s) \n    {\n        if(s.size() =
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n\n# Code\n```\nclass Solution {\npublic:\n    string breakPalindrome(string s) \n    {\n        if(s.size() == 1) return "";\n        int i = 0, j = s.size()-1;\n        while(i<j)\n        {\n            if(s[i] != \'a\')\n            {\n                s[i] = \'a\';\n                return s;\n            }\n            i++, j--;\n        }\n        s[s.size()-1] = \'b\';\n        return s;\n    }\n};\n```
['String', 'Greedy', 'C++']