Exercise 1


In this exercise you will scan through a dictionary (a list of words) and identify words with the following property: if you consider each word as an array of letters, it is possible to identify five positions in the array such that the letters at those five positions are the five vowels ('a', 'e', 'i', 'o', 'u'), and that the positions are in increasing order. Thus, the words has all five vowels and they occur in order. One example is "sacrilegious":
     s  a  c  r  i  l  e  g  i  o  u  s
     0  1  2  3  4  5  6  7  8  9  10 11
As you can see, the vowels occur in order at positions 1, 6, 8, 9, 10. We see that 'i' occurs in position 4, but that doesn't affect the property.

To solve this problem:

More details:

Submission:

What else is due: