Strings and sets

Count how many vowels (a, e, i, o, u — case insensitive) appear in a string.

Input:  Hello World
Output: 3

Constraints

  • Case insensitive: 'A' and 'a' both count.
  • Only English vowels: a, e, i, o, u.
Ad SpaceGoogle AdSense active for guests & free-tier learners.