Given a string s consisting only of the characters 'a' and 'b'.
A string is considered balanced if there is no pair of indices (i, j) such that s[i] is equal to 'b', and s[j] is equal to 'a'.
Return the minimum number of character deletions needed to make s balanced.
Constraints:
s.length
s[i] is either 'a' or 'b'
Given a string s consisting only of the characters 'a' and 'b'.
A string is considered balanced if there is no pair of indices (i, j) such that s[i] is equal to 'b', and s[j] is equal to 'a'.
Return the minimum number of character deletions needed to make s balanced.
Constraints:
s.length
s[i] is either 'a' or 'b'