Works, but requires handling of fringe cases (where words contain only vowels or only consonants)