comefrom: <gouthampradhan>string_MinimumAddtoMakeParenthesesValid_1.java
code: public int minAddToMakeValid(String S) {
      int result = 0;
      int open = 0;
      for (char c : S.toCharArray()) {
        if (c == '(') {
          open++;
        } else if (c == ')') {
          if (open > 0) {
            open--;
          } else result++;
        }
      }
      return result + open;
    }
masked: public int sample_funcname ( String var_0 ) {
    int var_1 = 0 ;
    int var_2 = 0 ;
    for ( char var_3 : var_0 . toCharArray ( ) ) {
      if ( var_3 == '(' ) {
        var_2 ++ ;
      }
      else if ( var_3 == ')' ) {
        if ( var_2 > 0 ) {
          var_2 -- ;
        }
        else var_1 ++ ;
      }
    }
    return var_1 + var_2 ;
  }
  