I don't know how to PRINT the longest substring of vowels. I know to count and find length of the longest substring, but I don't know how to print. This is example: Input: 12 fg aaa bvcf ssd ae Output: aaa
```
int isVowel(char c) {
char vowels[] = { "aeiouAEIOU" };
int length = strlen(vowels);
int i;
for (i = 0; i < length; i++) {
if (c == vowels[i]) return 1;
}
return 0;
}
void theLongestSubstring(char s[]) {
int length = strlen(s);
int i, j;
char newString[100];
int br = 0;
int count;
int maxCount = 0;
for (i = 0; i < (length - 1); i++) {
count = 1;
if (isVowel(s[i]) == 1) {
for (j = i + 1; j < length; j++) {
if (isVowel(s[j]) == 1) {
count++;
}
else {
break;
}
}
}
}
if (count > maxCount) {
maxCount = count;
}
//newString[br] = '\0';
printf("Length of the longest substring of vowels is:\n*** %d ***\n",
maxCount);
}
```