/**
 * Remove the vowels in each name using slicing and for loop
 */
fun removeVowels(names: List<String>): List<String> {

    // Empty list to store modified names
    val modifiedNames = mutableListOf<String>()

    // Iterate through each name
    for (name in names) {
        var modifiedName = ""

        // Remove vowels using slicing and for loop
        for (char in name) {
            if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
                modifiedName += char
            }
        }

        // Append modified name to the list
        modifiedNames.add(modifiedName)
    }

    return modifiedNames
}
/**
 * Remove the vowels in each name using slicing and for loop
 */
fun removeVowels(names: List<String>): List<String> {
/**
 * Remove the vowels in each name using slicing and for loop
 */
fun removeVowels(names: List<String>): List<String> {

    // Empty list to store modified names
    val modifiedNames = mutableListOf<String>()

    // Iterate through each name
    for (name in names) {
        var modifiedName = ""

        // Remove vowels using slicing and for loop
        for (char in name) {
            if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
                modifiedName += char
            }
        }

        // Append modified name to the list
        modifiedNames.add(modifiedName)
    }

    return modifiedNames
}