✅ Easy and Simple Python Code | Time Complexity : 130 ms | Beats 100% Users With Python ✅
Complexity\n- Time complexity : 130 ms Beats 100.00% of users with Python\n Add your time complexity here, e.g. O(n) \n\n- Space complexity : 18.14 MB Beats 49.
# Complexity\n- Time complexity : 130 ms Beats 100.00% of users with Python\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity : 18.14 MB Beats 49.78% of users with Python\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution(object):\n    def sortVowels(self, s):\n        """\n        :type s: str\n        :rtype: str\n        """\n        vowel = "AEIOUaeiou"\n        string = [0] * 100000\n        string = list(s)\n        arr = []\n        i = 0\n        for char in string:\n            if char in vowel:\n                arr.append(char)\n        arr.sort()\n        for j in range(len(string)):\n            if string[j] in vowel:\n                string[j] = arr[i]\n                i += 1\n        return \'\'.join(string)\n                \n```
['String', 'Sorting', 'Python', 'Python3']