comefrom: <doocs>1528.Shuffle String_1.py
code: def restoreString( s: str, indices: List[int]) -> str:
      ans = [0] * len(s)
      for i, c in enumerate(s):
          ans[indices[i]] = c
      return ''.join(ans)
masked: def sample_funcname ( var_0 : str , var_2 : List [ int ] ) -> str :
      var_7 = [ 0 ] * len ( var_0 )
      for var_9 , var_10 in enumerate ( var_0 ) :
          var_7 [ var_2 [ var_9 ] ] = var_10
      return ''.join ( var_7 )
  