Im trying to figure our how to perform a logical Not operation on a bit string.
ex. from 1101001 to the negation 00101100.
I was thinking of making an if statment for each value of the array, but this would be a lot of code. I assume there is a more efficient way to do this.