"ABEIOU"
Output:
"B"
Explanation: The houses marked with vowels (‘A’, ‘E’, ‘I’, ‘O’, ‘U’) will be removed, and only the consonant ‘B’ will remain.a, e, i, o, u
.house
is a string representing the sequence of house markings.vowels
containing all vowels (both lowercase and uppercase) to ensure that both cases are considered.vowels
string and appending to the result) for each character."ABEIOU"
"ABEIOU"
."B"
."B"
"HOUSE"
"HOUSE"
."HS"
."HS"