comefrom: <gouthampradhan>array_HIndex_1.java
code: public int hIndex(int[] citations) {
      int n = citations.length;
      int[] count = new int[n + 1];
      int[] S = new int[n + 1];
      for (int i = 0; i < citations.length; i++) {
        if (citations[i] > n) {
          citations[i] = n;
        }
      }
      for (int citation : citations) {
        count[citation]++;
      }
      S[n] = count[n];
      for (int i = n - 1; i >= 0; i--) {
        S[i] = count[i] + S[i + 1];
      }
      for (int i = n; i >= 0; i--) {
        if (i <= S[i]) {
          return i;
        }
      }
      return 0;
    }
masked: public int sample_funcname ( int [ ] var_0 ) {
    int var_1 = var_0 . length ;
    int [ ] var_2 = new int [ var_1 + 1 ] ;
    int [ ] var_3 = new int [ var_1 + 1 ] ;
    for ( int var_4 = 0 ;
    var_4 < var_0 . length ;
    var_4 ++ ) {
      if ( var_0 [ var_4 ] > var_1 ) {
        var_0 [ var_4 ] = var_1 ;
      }
    }
    for ( int var_5 : var_0 ) {
      var_2 [ var_5 ] ++ ;
    }
    var_3 [ var_1 ] = var_2 [ var_1 ] ;
    for ( int var_4 = var_1 - 1 ;
    var_4 >= 0 ;
    var_4 -- ) {
      var_3 [ var_4 ] = var_2 [ var_4 ] + var_3 [ var_4 + 1 ] ;
    }
    for ( int var_4 = var_1 ;
    var_4 >= 0 ;
    var_4 -- ) {
      if ( var_4 <= var_3 [ var_4 ] ) {
        return var_4 ;
      }
    }
    return 0 ;
  }
  