/**
 * This function takes a musician's name and removes all the vowels from it.
 *
 * @param name A musician's name.
 * @return The musician's name with all the vowels removed.
 *
 * Examples:
 * removeVowels("John Lennon") => "Jhn Lnnn"
 * removeVowels("Freddie Mercury") => "Frdd Mr"
 */
fun removeVowels(name: String): String {

    // Variable to store the name without vowels
    var nameWithoutVowels = ""

    // Iterate over each character of the name
    for (char in name) {
        // Check if the character is a vowel
        if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
            // Append the character to the result variable
            nameWithoutVowels += char
        }
    }

    // Return the name without vowels
    return nameWithoutVowels
}
/**
 * This function takes a musician's name and removes all the vowels from it.
 *
 * @param name A musician's name.
 * @return The musician's name with all the vowels removed.
 *
 * Examples:
 * removeVowels("John Lennon") => "Jhn Lnnn"
 * removeVowels("Freddie Mercury") => "Frdd Mr"
 */
fun removeVowels(name: String): String {
/**
 * This function takes a musician's name and removes all the vowels from it.
 *
 * @param name A musician's name.
 * @return The musician's name with all the vowels removed.
 *
 * Examples:
 * removeVowels("John Lennon") => "Jhn Lnnn"
 * removeVowels("Freddie Mercury") => "Frdd Mr"
 */
fun removeVowels(name: String): String {

    // Variable to store the name without vowels
    var nameWithoutVowels = ""

    // Iterate over each character of the name
    for (char in name) {
        // Check if the character is a vowel
        if (char.toLowerCase() !in listOf('a', 'e', 'i', 'o', 'u')) {
            // Append the character to the result variable
            nameWithoutVowels += char
        }
    }

    // Return the name without vowels
    return nameWithoutVowels
}