Count Beautiful Substrings II
A substring is beautiful when its vowels equal its consonants and their product is divisible by k. Prefix balances turn each check into a lookup.
A substring is beautiful when its vowels equal its consonants and their product is divisible by k. Prefix balances turn each check into a lookup.