Good string problem

https://codeforces.com/contest/1363/problem/B

i want to solve it using a diff approach…

plz complete this code of mine…
i have stored the length of consecutive occurence of 0 and 1 in a vector…
how to proceed from there on…plz complete my code…

plz reply at the earliest…

why is no one responding to this doubt …

plz reply at least since you have written the code u must be able to explain it