Loading Now

PlayfulVowel

You are given a string. Your task is to find the number of vowels that are places between two consonants.
The following letters are vowels: 'a', 'e', 'i', 'o', 'u' (and their uppercase versions).

Example:

  • For str = "How are you?" the output should be PlayfulVowel(str) = 1.
    The only vowel between two consonants is 'o' at the 1st position (0-based).

Input/Ouput:

  • [execution time limit] 0.5 seconds 

  • [input] string str

  • [output] integer

Post Comment

Contact