You are given an array of strings words and a list of range queries queries. Each query is a pair of indices [l_i, r_i] that refers to the subarray words[l_i..r_i] (inclusive).
For each query, return how many strings in the specified range both start and end with a vowel. Vowels are the lowercase letters a, e, i, o, and u.
Return an array of answers in the same order as queries.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters
words[i].length)
queries.length
l_i r_i words.length
You are given an array of strings words and a list of range queries queries. Each query is a pair of indices [l_i, r_i] that refers to the subarray words[l_i..r_i] (inclusive).
For each query, return how many strings in the specified range both start and end with a vowel. Vowels are the lowercase letters a, e, i, o, and u.
Return an array of answers in the same order as queries.
Constraints:
words.length
words[i].length
words[i] consists only of lowercase English letters
words[i].length)
queries.length
l_i r_i words.length