comefrom: <awangdev>767. Reorganize String_2.java
code: private Map<Character, Integer> buildCountMap(String S) {
  
          Map<Character, Integer> map = new HashMap<>();
          for (char c : S.toCharArray()) {
              int count = map.getOrDefault(c, 0) + 1;
              if (count > (S.length() + 1) / 2) return new HashMap<>(); 
              map.put(c, count);
          }
          return map;
      }
masked: private Map < Character , Integer > var_2 ( String var_4 ) {
    Map < Character , Integer > var_7 = new HashMap < > ( ) ;
    for ( char var_9 : var_4 . toCharArray ( ) ) {
      int var_13 = var_7 . getOrDefault ( var_9 , 0 ) + 1 ;
      if ( var_13 > ( var_4 . length ( ) + 1 ) / 2 ) return new HashMap < > ( ) ;
      var_7 . put ( var_9 , var_13 ) ;
    }
    return var_7 ;
  }
  