Python random choice solution
Intuition\n Describe your first thoughts on how to solve this problem. \nI came up with this random choice solution. \nHowever, I realized that we only need thr
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nI came up with this random choice solution. \nHowever, I realized that we only need three letters when I checked out the other solutions. LOL\nAnyway, the upper lengh of the string is 100. \nSo I guess there is no big difference in time complexity.\n\n# Code\n```python\nclass Solution:\n    def modifyString(self, s: str) -> str:\n        s = list("#" + s + "#")\n        for i in range(1, len(s) - 1):\n            if s[i] == "?":\n                while True:\n                    char = random.choice(string.ascii_lowercase)\n                    if char not in [s[i-1], s[i+1]]:\n                        s[i] = char\n                        break\n\n        return "".join(s[1:-1])\n```
['Python3']