Problem 788
Remove Vowels from a String
Easy · 10 pts · String, Basics
Problem
Remove every vowel (a, e, i, o, u, in lowercase or uppercase) from a word and print what remains, keeping the other letters in their original order. If nothing remains because the word contains only vowels, print EMPTY. Build a new string by appending each character that is not a vowel.
Input
A single word W of English letters.
Output
Print W without its vowels, or EMPTY if nothing remains.
Constraints
1 <= |W| <= 100000
Example input
Banana
Example output
Bnn
Explanation
Banana has the vowels a, a and a. Removing them leaves B, n and n in their original order, so the answer is Bnn.