simple C++
\nstring modifyString(string s) {\n        for(int i = 0; i < s.size(); i++) {\n            if(s[i] == \'?\') {\n                for(char ch = \'a\'; ch <= \'c\
```\nstring modifyString(string s) {\n        for(int i = 0; i < s.size(); i++) {\n            if(s[i] == \'?\') {\n                for(char ch = \'a\'; ch <= \'c\'; ch++) {\n                    if(i > 0 and s[i-1] == ch) continue;\n                    if(i < s.size() - 1 and s[i + 1] == ch) continue;\n                    s[i] = ch;\n                    break;\n                }\n            }\n        }\n        return s;\n    }\n```
['C', 'C++']