[Python3] greedy 1-line O(N)
Please check out this commit for solutions of weekly 266. \n\n\nclass Solution:\n    def countVowels(self, word: str) -> int:\n        return sum((i+1)*(len(wor
Please check out this [commit](https://github.com/gaosanyong/leetcode/commit/6b6e6b9115d2b659e68dcf3ea8e21befefaae16c) for solutions of weekly 266. \n\n```\nclass Solution:\n    def countVowels(self, word: str) -> int:\n        return sum((i+1)*(len(word)-i) for i, x in enumerate(word) if x in "aeiou")\n```
['Python3']