Given a string word, return the total count of vowels ('a', 'e', 'i', 'o', and 'u') across all substrings of word.
Note: A substring is a contiguous non empty sequence of characters within a string.
Constraints:
word.length
word consists of lowercase English letters.
Given a string word, return the total count of vowels ('a', 'e', 'i', 'o', and 'u') across all substrings of word.
Note: A substring is a contiguous non empty sequence of characters within a string.
Constraints:
word.length
word consists of lowercase English letters.