Hola interview question

write a function that uses regex