comefrom: <gouthampradhan>string_ReverseStringII_1.java
code: public String reverseStr(String s, int k) {
      StringBuilder sb = new StringBuilder();
      for (int i = 0, l = s.length(); i < l; i++) {
        if (i % (2 * k) == 0) {
          int count = 0;
          StringBuilder temp = new StringBuilder();
          while (count < k && i < l) {
            temp.append(s.charAt(i));
            count++;
            i++;
          }
          sb.append(temp.reverse());
        }
        if (i < l) {
          sb.append(s.charAt(i));
        }
      }
      return sb.toString();
    }
masked: public String var_0 ( String var_2 , int var_3 ) {
    StringBuilder var_5 = new StringBuilder ( ) ;
    for ( int var_7 = 0 , var_9 = var_2 . length ( ) ;
    var_7 < var_9 ;
    var_7 ++ ) {
      if ( var_7 % ( 2 * var_3 ) == 0 ) {
        int var_11 = 0 ;
        StringBuilder var_12 = new StringBuilder ( ) ;
        while ( var_11 < var_3 && var_7 < var_9 ) {
          var_12 . append ( var_2 . charAt ( var_7 ) ) ;
          var_11 ++ ;
          var_7 ++ ;
        }
        var_5 . append ( var_12 . reverse ( ) ) ;
      }
      if ( var_7 < var_9 ) {
        var_5 . append ( var_2 . charAt ( var_7 ) ) ;
      }
    }
    return var_5 . toString ( ) ;
  }
  