fn bit_balance(data: Vec<String>, index: usize) -> Result<i32, &'static str> {
    let mut acc = 0;

    for word in data {
        let b = word.into_bytes()[index];
        if b == 48 {
            acc -= 1;
        } else if b == 49 {
            acc += 1;
        } else {
            return Err("Unexpected byte");
        }
    }

    return Ok(acc);
}
// bit_balance returns how many more ones are in the data at the specified index
// compared to the number of zeroes at that index. So, if there are more ones,
// it will return a positive number, if they are equal, it will return 0, and 
// if there are more zeroes, it will return a negative number.
bit_balance returns how many more ones are in the data at the specified index
compared to the number of zeroes at that index. So, if there are more ones,
it will return a positive number, if they are equal, it will return 0, and
if there are more zeroes, it will return a negative number.
bit_balance returns how many more ones are in the data at the specified index compared to the number of zeroes at that index . So if there are more ones it will return a positive number if they are equal it will return 0 and if there are more zeroes it will return a negative number .
fn bit_balance(data: Vec<String>, index: usize) -> Result<i32, &'static str> {
    let mut acc = 0;
    for word in data {
        let b = word.into_bytes()[index];
        if b == 48 {
            acc -= 1;
        } else if b == 49 {
            acc += 1;
        } else {
            return Err("Unexpected byte");
        }
    }
    return Ok(acc);
}
fn bit_balance ( data : Vec < String > , index : usize ) -> Result < i32 , & ' static str > { let mut acc = 0 ; for word in data { let b = word . into_bytes ( ) [ index ] ; if b == 48 { acc -= 1 ; } else if b == 49 { acc += 1 ; } else { return Err ( " " ) ; } } return Ok ( acc ) ; }
bit_balance returns how many more ones are in the data at the specified index
compared to the number of zeroes at that index.
bit_balance returns how many more ones are in the data at the specified index compared to the number of zeroes at that index .
data
Vec<String>
index
usize