Count Vowels

EasyString

Description

Given a string s of lowercase letters, return how many characters are vowels (a, e, i, o, u).

Examples

Input:s = "hello"
Output:2
Explanation:

The string contains 2 vowel letters drawn from a, e, i, o, and u.

Input:s = "rhythm"
Output:0
Explanation:

The string contains 0 vowel letters drawn from a, e, i, o, and u.

Input:s = "arena"
Output:3
Explanation:

The string contains 3 vowel letters drawn from a, e, i, o, and u.

Constraints

  • 1 ≤ s.length ≤ 10⁴
  • s consists of lowercase English letters.

Ready to solve this problem?

Practice solo and sharpen your skills for technical interviews.