Your friend is trying to write a function that removes all vowels from a string. They write:
def remove_vowels(str)
return str.sub(/[aeiou]/i, '')
endHowever, it seems that it doesn't work? Fix your friend's code so that it actually does remove all vowels.
remove_vowels("candy") ➞ "cndy"
remove_vowels("hello") ➞ "hllo"
# The "e" is removed, but the "o" is still there!
remove_vowels("apple") ➞ "pple"All letters will be lowercase.