/**
 * You are given a photographer's name and a list of special characters.
 * Implement a function that removes all occurrences of the special characters from the name.
 *
 * @param photographerName The name of the photographer.
 * @param specialCharacters A list of special characters to be removed.
 * @return The photographer's name with all special characters removed.
 *
 * Example:
 * removeSpecialCharacters("John_Doe", listOf('_', '@', '$')) // "JohnDoe"
 * removeSpecialCharacters("Mich@el*Ja#ckson", listOf('@', '*', '#')) // "MichaelJackson"
 */
fun removeSpecialCharacters(photographerName: String, specialCharacters: List<Char>): String {

    var modifiedName = photographerName
    specialCharacters.forEach { char ->
        modifiedName = modifiedName.replace(char.toString(), "")
    }
    return modifiedName
}
/**
 * You are given a photographer's name and a list of special characters.
 * Implement a function that removes all occurrences of the special characters from the name.
 *
 * @param photographerName The name of the photographer.
 * @param specialCharacters A list of special characters to be removed.
 * @return The photographer's name with all special characters removed.
 *
 * Example:
 * removeSpecialCharacters("John_Doe", listOf('_', '@', '$')) // "JohnDoe"
 * removeSpecialCharacters("Mich@el*Ja#ckson", listOf('@', '*', '#')) // "MichaelJackson"
 */
fun removeSpecialCharacters(photographerName: String, specialCharacters: List<Char>): String {
/**
 * You are given a photographer's name and a list of special characters.
 * Implement a function that removes all occurrences of the special characters from the name.
 *
 * @param photographerName The name of the photographer.
 * @param specialCharacters A list of special characters to be removed.
 * @return The photographer's name with all special characters removed.
 *
 * Example:
 * removeSpecialCharacters("John_Doe", listOf('_', '@', '$')) // "JohnDoe"
 * removeSpecialCharacters("Mich@el*Ja#ckson", listOf('@', '*', '#')) // "MichaelJackson"
 */
fun removeSpecialCharacters(photographerName: String, specialCharacters: List<Char>): String {

    var modifiedName = photographerName
    specialCharacters.forEach { char ->
        modifiedName = modifiedName.replace(char.toString(), "")
    }
    return modifiedName
}