You are a string ‘S’. Your task is to count all the “substrings” of ‘S’ that contain only “vowels”.
Note :
1. The string ‘S’ consists of only lowercase English alphabets.
2. A ‘substring’ is a contiguous sequence of characters within a string.
3. Recall that vowels in lowercase English alphabets are: {‘a’, ‘e’, ‘i’, ‘o’, ‘u’}.
Input Format :
The first line contains an integer ‘T’, which denotes the number of test cases to be run. Then, the ‘T’ test cases follow.
The first and only line of each test case contains a string ‘S’ of lowercase letters.
Output Format :
For each test case, print in a new line an integer denoting the number of all “substrings” of ‘S’ that contain only “vowels”.
Output for each test case will be printed in a separate line.
Note :
You do not need to print anything. It has already been taken care of. Just implement the given function.
Constraints :
1 <= T <= 10
1 <= |S| <= 5000
Time Limit: 1sec