You are given a binary string s. In a single operation, you can flip any character in s from '$0$' to '$1$' or from '$1$' to '$0$'.
A string is defined as coherent if it does not contain "$011$" or "$110$" as a subsequence.
Return the minimum number of flips required to make s coherent.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.
You are given a binary string s. In a single operation, you can flip any character in s from '$0$' to '$1$' or from '$1$' to '$0$'.
A string is defined as coherent if it does not contain "$011$" or "$110$" as a subsequence.
Return the minimum number of flips required to make s coherent.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.