Find the password strength.
For each substring of the password which contains at least one vowel and one consonant, its strength goes up by 1.
vowels={'a', 'e', 'i', 'o', 'u'}, and rest of letters are all consonant.
(Only lower alphabet letters)
Input:
thisisbeautiful
output:
6
explaination:
this, is, be, aut, if, ul
input:
hackerrank
output:
3
explaination:
hack, er, rank
input:
aeiou
output:
0