Javscript Solution


#1
solve : function(A){
let count = 0;
let charOfArr = A.match(/[a-zA-Z]/g);
let vowels = "aeiouAIEOU".split("");
let len = charOfArr.length;
for(i=0;i<len;i++){
    if(vowels.includes(charOfArr[i])){
        count += (len - i);
    }
}
return count%10003;
}