Best Code So far ?? One Pass Solution
class Solution {\n\n    public long countVowels(String word) {\n\n        int len=word.length();\n        long count=0;\n        for(int i=0;i<len;i++){\n      
`class Solution {\n\n    public long countVowels(String word) {\n\n        int len=word.length();\n        long count=0;\n        for(int i=0;i<len;i++){\n            if(check(word.charAt(i))){\n                \n                count+=((long)(len-i))*((long)(i+1));\n            }\n        }\n        return count;\n    }\n     boolean check(char ch){\n        return ch==\'a\' || ch==\'e\' || ch==\'i\' || ch==\'o\' || ch==\'u\';\n    }\n}`\nHit Like if this solution helps you
['Java']