Help me in solving DIVBY3 problem

My issue

what kind of explanation video have you posted? It is nothing but you just read the solution. You didn’t discuss lot of example. Such as, give me an example when the answer is gonna be 2 and if the string is like 1111…1110000…000 ,when the answer is gonna be 1?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here

}

Problem Link: Minimize swaps Practice Coding Problem