https://leetcode.com/problems/adding-spaces-to-a-string/



Time Limit Exceeded



```python
class Solution:
    def addSpaces(self, s: str, spaces: List[int]) -> str:
        #10:00
        spaces = [space_index + index for index, space_index in enumerate(spaces)]
        s_list = list(s)
        for space_index in spaces:
            s_list.insert(space_index, ' ')
        return ''.join(s_list)
        #10:02 
```

