You are given a binary string s.
You can perform the following operation on the string any number of times:
Choose an index i such that s[i] is equal to '$1$' and s[i + 1] is equal to '$0$'. Move the character at index i to the right until it reaches either another character '$1$' or the end of the string.
Return the maximum number of operations you can perform.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.
You are given a binary string s.
You can perform the following operation on the string any number of times:
Choose an index i such that s[i] is equal to '$1$' and s[i + 1] is equal to '$0$'. Move the character at index i to the right until it reaches either another character '$1$' or the end of the string.
Return the maximum number of operations you can perform.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.