ones to the total count of '1's in s.zeros to 0 and max_score to 0.s from the first character to the second-to-last character:
a. If the current character is '1', decrement ones.
b. If the current character is '0', increment zeros.
c. Update max_score with the maximum of max_score and zeros + ones.max_score.