text of lowercase English letters and an integer width. Look at every substring of length exactly width (consecutive characters) and return the largest number of vowels any one of them contains.
The vowels are a, e, i, o and u.text="sequoia", width=4 → 4
The window "uoia" is made entirely of vowels, which gives 4.
text="strength", width=3 → 1
Windows like "ren" contain at most one vowel.
text="queue", width=5 → 4
text consists of lowercase English letterstext="sequoia", width=4
4
Run checks the first 3 tests in your browser. Submit checks all 82 tests on the server, hidden ones included.