waitingTime and zeroCount to 0.lastOcc.lastOcc.
a. If two consecutive '1's are found, increase waitingTime by 1 (if there are zeros to the left).
b. If two consecutive '0's are found, decrease waitingTime by 1 (if there is a waiting time).
c. If a '0' is found, increment zeroCount.zeroCount and waitingTime.