✔Simple and Short || C++ Approach
bool check(char x){\n        \n        \n        if(x==\'a\' || x==\'e\' || x==\'i\' || x==\'o\' || x==\'u\') return true;\n        else return false;\n    }\n 
bool check(char x){\n        \n        \n        if(x==\'a\' || x==\'e\' || x==\'i\' || x==\'o\' || x==\'u\') return true;\n        else return false;\n    }\n    long long countVowels(string word) {\n        \n        long long ans=0;\n        \n        \n        for(int i=0;i<word.size();i++)\n        {\n            \n            if(check(word[i])){\n                ans+=((i+1)*(word.size() -i));\n            }\n        }\n        return ans;\n    }```\n\n```
['C', 'C++']