s a c r i l e g i o u s 0 1 2 3 4 5 6 7 8 9 10 11As 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:
String str = "sacrilegious" char[] letters = str.toCharArray ();
More details:
Submission:
What else is due: