C++  easy approch solution
class Solution {\npublic:\n    string breakPalindrome(string p)\n    {\n        if(p.size()<=1)\n            return "";\n        for(int i=0;i<p.size()/2;i++)\n
class Solution {\npublic:\n    string breakPalindrome(string p)\n    {\n        if(p.size()<=1)\n            return "";\n        for(int i=0;i<p.size()/2;i++)\n        {\n            if(p[i]!=\'a\')\n            {\n                p[i]=\'a\';\n                return p;\n                break;\n            }\n        }\n        p[p.size()-1]=\'b\';\n        return p;\n    }\n};
[]