comefrom: <doocs>0541.Reverse String II_1.py
code: def reverseStr( s: str, k: int) -> str:
      t = list(s)
      for i in range(0, len(t), k << 1):
          t[i : i + k] = reversed(t[i : i + k])
      return ''.join(t)
masked: def sample_funcname ( var_0 : str , var_2 : int ) -> str :
      var_5 = list ( var_0 )
      for var_10 in range ( 0 , len ( var_5 ) , var_2 << 1 ) :
          var_5 [ var_10 : var_10 + var_2 ] = reversed ( var_5 [ var_10 : var_10 + var_2 ] )
      return ''.join ( var_5 )
  