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_1 : List [ int ] ) -> str :
      var_2 = [ 0 ] * len ( var_0 )
      for var_3 , var_4 in enumerate ( var_0 ) :
          var_2 [ var_1 [ var_3 ] ] = var_4
      return ''.join ( var_2 )
  