Given a string, return the number of substrings that start with a vowel.
s = "ABEC"
ans = 6
This is one of those problems which might sound complex at first but are really simple.
The number of substrings that start with a given vowel will be length of string - index of the character.
We can sum this for all the vowels present to get the answer.