✅✅Easiest || 4 line of Code || Optimal
\nclass Solution {\npublic:\n    string breakPalindrome(string s) {\n        string ans = "";\n        int n = s.length();\n        /* If given string length ==
```\nclass Solution {\npublic:\n    string breakPalindrome(string s) {\n        string ans = "";\n        int n = s.length();\n        /* If given string length == 1 then return empty string */\n        if(n == 1) return ans;\n        \n        for(int i = 0;i<n/2;i++){\n            /* replace with a */\n            if(s[i] != \'a\'){\n                s[i] = \'a\';\n                return s;\n            }\n        }\n        /* replace last with b \uD83D\uDE02\uD83D\uDE02\uD83D\uDE02 it is done guyz*/\n        s[n-1] = \'b\';\n        return s;\n    }\n};\n```\n\nIf you like it please do Upvote
['C', 'C++']