C++ || Easy || O(N)
\nbool isvowel(char c){\n        return (c==\'a\' or c ==\'e\' or c==\'i\' or c==\'o\' or c==\'u\');\n    }\n    long long countVowels(string word) {\n        l
```\nbool isvowel(char c){\n        return (c==\'a\' or c ==\'e\' or c==\'i\' or c==\'o\' or c==\'u\');\n    }\n    long long countVowels(string word) {\n        long long int ans=0;\n        for(int i=0;i<word.size();i++){\n            if(isvowel(word[i]))\n                ans += (i+1)*(word.size()-i);\n            else continue;\n        }\n        return ans;\n    }\n```
['C']