How to Count Vowels in Swift - Code Snippet

How to perform 'Count Vowels' in Swift.

example.swift
// Task: Count Vowels
// Language: Swift

func countVowels() {
    // Implementation for Count Vowels
    var result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Count Vowels
    print("Done");
}
AdSense Slot