Extend the Vowels

Published by Cool_Kidd in

Create a function that takes a word and extends all vowels by a number num.

Examples

extend_vowels("Hello", 5) ➞ "Heeeeeelloooooo"

extend_vowels("Edabit", 3) ➞ "EEEEdaaaabiiiit"

extend_vowels("Extend", 0) ➞ "Extend"

Notes

Return "invalid" if num is not a positive integer or 0.

Watch a quick demo on how Edabit works.