EASY JAVA CODE
\nclass Solution {\n    public String modifyString(String s) {\n        char c;\n        char[] chars = s.toCharArray();\n        for (int i=0; i<s.length(); i+
```\nclass Solution {\n    public String modifyString(String s) {\n        char c;\n        char[] chars = s.toCharArray();\n        for (int i=0; i<s.length(); i++){\n            if(chars[i] == \'?\'){\n                for(c=\'a\'; c<=\'z\'; c++){\n                    if((i == 0 || c != chars[i-1]) && (i == s.length()-1 || c != chars[i+1])) {\n                        chars[i] = c;\n                        break;\n                    }\n                }\n          }\n      }\n    return String.valueOf(chars);\n  }\n}\n```
['String', 'Java']