comefrom: <gouthampradhan>array_MaxConsecutiveOnes_1.java
code: public int findMaxConsecutiveOnes(int[] nums) {
      int max = 0;
      boolean flag = false;
      int count = 0;
      for (int i = 0; i < nums.length; i++) {
        if (nums[i] == 1) {
          if (!flag) {
            flag = true;
          }
          count++;
          max = Math.max(max, count);
        } else {
          count = 0;
          flag = false;
        }
      }
      return max;
    }
masked: public int sample_funcname ( int [ ] var_0 ) {
    int max = 0 ;
    boolean var_3 = false ;
    int var_1 = 0 ;
    for ( int var_2 = 0 ;
    var_2 < var_0 . length ;
    var_2 ++ ) {
      if ( var_0 [ var_2 ] == 1 ) {
        if ( ! var_3 ) {
          var_3 = true ;
        }
        var_1 ++ ;
        max = Math . max ( max , var_1 ) ;
      }
      else {
        var_1 = 0 ;
        var_3 = false ;
      }
    }
    return max ;
  }
  