Rosetta Problems

Mofk Cup Round 2 - YET ANOTHER BINARY STRING PROBLEM

https://oj.vnoi.info/problem/mofkcup_r2_e