Challenge 1: Let's find the total number of vowels
In this lesson, the user will have to find the total vowels in a given string
We'll cover the following
Problem Statement
Given a sentence you will find that the letters can be divided into two segments; Consonants and Vowels. Vowels are the letters; A, E, I, O, U or a, e, i, o, u. In this challenge, you need to find the total numbers of vowels in a given string.
The function where you must write your code is given to you and you cannot change the input parameters.
Try the code out yourself before looking at the solution.
Good luck
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.