String window problem

i didn’t understood your concept of counting frequency of characters i got confused in it

Pls elaborate ur doubt