100% faster || C++ Solution || Clean Code
\nclass Solution {\npublic:\n    string modifyString(string s) {\n        int n = s.size();\n        for(int i = 0; i < n; i++)\n            if(s[i] == \'?\')\n
```\nclass Solution {\npublic:\n    string modifyString(string s) {\n        int n = s.size();\n        for(int i = 0; i < n; i++)\n            if(s[i] == \'?\')\n                for(int c = \'a\'; c <= \'z\'; c++)\n                {\n                    if(i-1 >= 0 && c == s[i-1]) continue;\n                    if(i+1 < n && c == s[i+1]) continue;\n                    s[i] = c;\n                    break;\n                } \n        return s;\n    }\n};\n```
['C', 'C++']