(C++) 2063. Vowels of All Substrings
\n\nclass Solution {\npublic:\n    long long countVowels(string word) {\n        long ans = 0; \n        string vowel = "aeiou"; \n        for (long i = 0; i < 
\n```\nclass Solution {\npublic:\n    long long countVowels(string word) {\n        long ans = 0; \n        string vowel = "aeiou"; \n        for (long i = 0; i < word.size(); ++i) \n            if (vowel.find(word[i]) != string::npos)\n                ans += (i+1)*(word.size()-i); \n        return ans; \n    }\n};\n```
['C']