Let’s say there is a string of 0 and 1, e.g.g. 00010111010.
The goal is to sort it. 2 pairs can be switched on each step. For example the mentioned above string can be sorted in following steps:
I can solve this, but when it is
in this case I can not swap 2bites in each step