Daily LeetCoding challenge
\nclass Solution {\n    public String breakPalindrome(String palindrome) {\n        if(palindrome.length()==1)\n            return "";\n        \n        for(in
```\nclass Solution {\n    public String breakPalindrome(String palindrome) {\n        if(palindrome.length()==1)\n            return "";\n        \n        for(int i=0;i<palindrome.length()/2;i++)\n        {\n            if(palindrome.charAt(i)!=\'a\')\n            {\n                palindrome = palindrome.substring(0, i) + \'a\' + palindrome.substring(i + 1);\n                return palindrome;\n            }\n        }\n        palindrome = palindrome.substring(0,palindrome.length()-1) + \'b\' + palindrome.substring(palindrome.length());\n        return palindrome;\n    }\n}\n```
['Java']