What would be the output of the following code? If there is…

What would be the output of the following code? If there is an error, write “ERROR” def word_magic(text): if text == “”: return “” else: if text[0].lower() in “aeiou”: return text[0].upper() + word_magic(text[1:]) else: return text[0] + word_magic(text[1:])print(word_magic(“hello world”))