/**
 * Given a dancer's name and a list of vowels to remove, modify the name by removing all the specified vowels.
 *
 * @param dancerName The name of the dancer.
 * @param vowelsToRemove A list of vowels to remove from the name.
 * @return The modified dancer's name with the specified vowels removed.
 */
fun modifyDancerName(dancerName: String, vowelsToRemove: List<Char>): String {

    // Initializing an empty string to store the modified name
    var modifiedName = ""

    // Iterating over each character in the dancer's name using a for loop
    for (char in dancerName) {
        // Checking if the current character is a vowel and if it needs to be removed
        if (char.toLowerCase() !in vowelsToRemove) {
            // Adding non-vowel character to the modified name
            modifiedName += char
        }
    }

    return modifiedName
}
/**
 * Given a dancer's name and a list of vowels to remove, modify the name by removing all the specified vowels.
 *
 * @param dancerName The name of the dancer.
 * @param vowelsToRemove A list of vowels to remove from the name.
 * @return The modified dancer's name with the specified vowels removed.
 */
fun modifyDancerName(dancerName: String, vowelsToRemove: List<Char>): String {
/**
 * Given a dancer's name and a list of vowels to remove, modify the name by removing all the specified vowels.
 *
 * @param dancerName The name of the dancer.
 * @param vowelsToRemove A list of vowels to remove from the name.
 * @return The modified dancer's name with the specified vowels removed.
 */
fun modifyDancerName(dancerName: String, vowelsToRemove: List<Char>): String {

    // Initializing an empty string to store the modified name
    var modifiedName = ""

    // Iterating over each character in the dancer's name using a for loop
    for (char in dancerName) {
        // Checking if the current character is a vowel and if it needs to be removed
        if (char.toLowerCase() !in vowelsToRemove) {
            // Adding non-vowel character to the modified name
            modifiedName += char
        }
    }

    return modifiedName
}