comefrom: <doocs>0345.Reverse Vowels of a String_1.py
code: def reverseVowels( s: str) -> str:
      vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}
      i, j = 0, len(s) - 1
      chars = list(s)
      while i < j:
          if chars[i] not in vowels:
              i += 1
              continue
          if chars[j] not in vowels:
              j -= 1
              continue
          chars[i], chars[j] = chars[j], chars[i]
          i += 1
          j -= 1
      return ''.join(chars)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_12 = { 'a' , 'e' , 'i' , 'o' , 'u' , 'A' , 'E' , 'I' , 'O' , 'U' }
      var_14 , var_17 = 0 , len ( var_0 ) - 1
      var_19 = list ( var_0 )
      while var_14 < var_17 :
          if var_19 [ var_14 ] not in var_12 :
              var_14 += 1
              continue
          if var_19 [ var_17 ] not in var_12 :
              var_17 -= 1
              continue
          var_19 [ var_14 ] , var_19 [ var_17 ] = var_19 [ var_17 ] , var_19 [ var_14 ]
          var_14 += 1
          var_17 -= 1
      return ''.join ( var_19 )
  