Easy-to-understand python dp
\nclass Solution:\n    def countVowels(self, word: str) -> int:\n        dp = []\n        for i, el in enumerate(word):\n            if el in \'aeiou\':\n      
```\nclass Solution:\n    def countVowels(self, word: str) -> int:\n        dp = []\n        for i, el in enumerate(word):\n            if el in \'aeiou\':\n                running_sum = i + 1 + (dp[-1] if dp else 0)\n                dp.append(running_sum)\n            else:\n                dp.append(dp[-1] if dp else 0)\n        return sum(dp)\n```
['Dynamic Programming', 'Python']