How to Count Vowels in Kotlin - Code Snippet

How to perform 'Count Vowels' in Kotlin.

example.kt
// Task: Count Vowels
// Language: Kotlin

fun count_vowels() {
    // Implementation for Count Vowels
    val result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Count Vowels
    println("Done");
}
AdSense Slot