class Solution(object):
    def reverseVowels(self, s):
        """
        :type s: str
        :rtype: str
        """
        vowels = list(filter(lambda x:x in 'aeiouAEIOU', s))
        ans = []
        for c in s:
            if c in 'aeiouAEIOU':
                ans.append(vowels.pop())
            else:
                ans.append(c)
        return ''.join(ans)

Add py solution for 345. Reverse Vowels of a String
Add py solution for 345. Reverse Vowels of a String

345. Reverse Vowels of a String: https://leetcode.com/problems/reverse-vowels-of-a-string/
