Python (Simple Maths)
\n    def countVowels(self, word):\n        total = 0\n        \n        for i in range(len(word)):\n            if word[i] in "aeiou":\n                total +
\n    def countVowels(self, word):\n        total = 0\n        \n        for i in range(len(word)):\n            if word[i] in "aeiou":\n                total += (i+1)*(len(word)-i)\n                \n        return total
[]