Help in Goodbye 2019 problem F (Awesome substrings)
I read the Editorial of this problem . I got some idea but did not understood it completely .Can someone help me explaining it (will be good if explained using example) .