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_1 , int var_2 ) {
    StringBuilder var_3 = new StringBuilder ( ) ;
    for ( int var_4 = 0 , var_5 = var_1 . length ( ) ;
    var_4 < var_5 ;
    var_4 ++ ) {
      if ( var_4 % ( 2 * var_2 ) == 0 ) {
        int var_6 = 0 ;
        StringBuilder var_7 = new StringBuilder ( ) ;
        while ( var_6 < var_2 && var_4 < var_5 ) {
          var_7 . append ( var_1 . charAt ( var_4 ) ) ;
          var_6 ++ ;
          var_4 ++ ;
        }
        var_3 . append ( var_7 . reverse ( ) ) ;
      }
      if ( var_4 < var_5 ) {
        var_3 . append ( var_1 . charAt ( var_4 ) ) ;
      }
    }
    return var_3 . toString ( ) ;
  }
  