class Solution:
    def reverseVowels(self, s: str) -> str:
        vowels = 'aeiouAEIOU'
        v_indices = []
        v_chars = []
        s = list(s)
        for i, ch in enumerate(s):
            if ch in vowels:
                v_indices.append(i)
                v_chars.append(ch)
        for i in v_indices:
            s[i] = v_chars.pop()
        return ''.join(s)


if __name__ == "__main__":
    solution = Solution()
    input = 'hello'
    out = solution.reverseVowels(input)
    print(out)

332f8e4b9b993bd78a96040f38e8480332603c06
<mask token>

class Solution:
    <mask token>


<mask token>

class Solution:

    def reverseVowels(self, s: str) ->str:
        vowels = 'aeiouAEIOU'
        v_indices = []
        v_chars = []
        s = list(s)
        for i, ch in enumerate(s):
            if ch in vowels:
                v_indices.append(i)
                v_chars.append(ch)
        for i in v_indices:
            s[i] = v_chars.pop()
        return ''.join(s)


<mask token>

class Solution:

    def reverseVowels(self, s: str) ->str:
        vowels = 'aeiouAEIOU'
        v_indices = []
        v_chars = []
        s = list(s)
        for i, ch in enumerate(s):
            if ch in vowels:
                v_indices.append(i)
                v_chars.append(ch)
        for i in v_indices:
            s[i] = v_chars.pop()
        return ''.join(s)


if __name__ == '__main__':
    solution = Solution()
    input = 'hello'
    out = solution.reverseVowels(input)
    print(out)

class Solution:
    def reverseVowels(self, s: str) -> str:
        vowels = 'aeiouAEIOU'
        v_indices = []
        v_chars = []
        s = list(s)
        for i, ch in enumerate(s):
            if ch in vowels:
                v_indices.append(i)
                v_chars.append(ch)
        for i in v_indices:
            s[i] = v_chars.pop()
        return ''.join(s)


if __name__ == "__main__":
    solution = Solution()
    input = 'hello'
    out = solution.reverseVowels(input)
    print(out)
