Maximum vowels in window
Your task
Given a string s and integer k, return the maximum number of vowels (a, e, i, o, u) in any substring of length exactly k. If k > len(s) return 0. Constraints: 1 <= len(s) <= 10^5, 1 <= k, s is lowercase letters.
Examples
max_vowels_window(s: str, k: int) -> intExample 1
Input
max_vowels_window("abciiidef", 3)Output
3