java || easy to understand
\nclass Solution {\n    public String modifyString(String s) {\n       char arr[]=new char[s.length()];\n        for(int i=0;i<s.length();i++){\n            arr
```\nclass Solution {\n    public String modifyString(String s) {\n       char arr[]=new char[s.length()];\n        for(int i=0;i<s.length();i++){\n            arr[i]=s.charAt(i);\n        }\n        for(int i=0;i<arr.length;i++){\n            if(arr[i]==\'?\'){\n                for(char j=\'a\';j<=\'c\';j++){\n                    if((i==0 || arr[i-1]!=j)&&(i==s.length()-1 || arr[i+1]!=j)){\n                        arr[i]=j;\n                        break;\n                    }\n                }\n            }\n        }\n        return String.valueOf(arr);\n    }\n}```
['Java']