Axxess interview question

First coding question: Write an algorithm to count all vowels in a string Second coding question: Write an algorithm to determine if a number is a "happy" number