
words의 left 인덱스 부터, right 인덱스까지 순회const vowel = new Set('aeiou')
function vowelStrings(words: string[], left: number, right: number): number {
let count = 0
for(let i = left; i <= right; i++) {
if(isVowelString(words[i])) count++
}
return count
};
function isVowelString(str: string) {
if(!vowel.has(str[0])) return false
if(!vowel.has(str[str.length - 1])) return false
return true
}