Can anyone explain my approach:)..Easy O(n) simplest solution.(Python)
\n\t\n        c=0\n        ans=0\n        for i in range(len(word)):\n            if word[i] in [\'a\',\'e\',\'i\',\'o\',\'u\']:\n                c+=1      # fo
\n\t\n        c=0\n        ans=0\n        for i in range(len(word)):\n            if word[i] in [\'a\',\'e\',\'i\',\'o\',\'u\']:\n                c+=1      # for all substrings from this point, vowels accumulated\n                c+=i      # for all substrings till this point, the count of vowel is accumulated\n            ans+=c\n        return ans\n\t\t\n\t\t#Comment down a good explanation for this code please.\n       \n\t\t
['Python']