Categories
Medium Problems

โจทย์ข้อที่ MX0085

จงเขียนฟังก์ชั่นที่ส่งจำนวนสระออกมา (a,e,i,o,u) จากจำนวนเต็มที่ส่งเข้าไปแบบ recursive

Examples

countVowels(“apple”) ➞ 2

countVowels (“cheesecake”) ➞ 5

countVowels (“bbb”) ➞ 0

Leave a Reply