Wrote the vowelsInWord() function.