comefrom: <awangdev>Binary Gap_1.java
code: public int binaryGap(int N) {
          if (N <= 0) return 0;
          int max = 0, start = -1, end = 0;
          while (N > 0) {
              if ((N & 1) == 1) {
                  if (start == -1) start = end;
                  else {
                      max = Math.max(max, end - start);
                      start = end;
                  }
              }
              end++;
              N = N >> 1;
          }
          return max;
      }
masked: public int sample_funcname ( int var_0 ) {
    if ( var_0 <= 0 ) return 0 ;
    int max = 0 , var_1 = - 1 , var_2 = 0 ;
    while ( var_0 > 0 ) {
      if ( ( var_0 & 1 ) == 1 ) {
        if ( var_1 == - 1 ) var_1 = var_2 ;
        else {
          max = Math . max ( max , var_2 - var_1 ) ;
          var_1 = var_2 ;
        }
      }
      var_2 ++ ;
      var_0 = var_0 >> 1 ;
    }
    return max ;
  }
  