comefrom: <awangdev>1106. Parsing A Boolean Expression_1.java
code: private String findExpBlock(String s, int i) {
  
          StringBuffer sb = new StringBuffer();
          Stack<Character> stack = new Stack<>();
          while (sb.length() == 0 || !stack.isEmpty()) {
              char c = s.charAt(i++);
              sb.append(c);
              if (c == '(') stack.push(c);
              if (c == ')') stack.pop();
              if (stack.isEmpty()) break;
          }
          return sb.toString();
      }
masked: private String var_0 ( String var_1 , int var_2 ) {
    StringBuffer var_3 = new StringBuffer ( ) ;
    Stack < Character > var_4 = new Stack < > ( ) ;
    while ( var_3 . length ( ) == 0 || ! var_4 . isEmpty ( ) ) {
      char var_5 = var_1 . charAt ( var_2 ++ ) ;
      var_3 . append ( var_5 ) ;
      if ( var_5 == '(' ) var_4 . push ( var_5 ) ;
      if ( var_5 == ')' ) var_4 . pop ( ) ;
      if ( var_4 . isEmpty ( ) ) break ;
    }
    return var_3 . toString ( ) ;
  }
  