/**
 * Given a string and a list of characters, remove all occurrences of those characters from the string.
 *
 * @param string The input string.
 * @param characters The list of characters to be removed.
 * @return The modified string after removing the specified characters.
 */
fun removeCharacters(string: String, characters: List<Char>): String {

    var newString = ""
    for (char in string) {
        if (char !in characters) {
            newString += char
        }
    }
    return newString
}
/**
 * Given a string and a list of characters, remove all occurrences of those characters from the string.
 *
 * @param string The input string.
 * @param characters The list of characters to be removed.
 * @return The modified string after removing the specified characters.
 */
fun removeCharacters(string: String, characters: List<Char>): String {
/**
 * Given a string and a list of characters, remove all occurrences of those characters from the string.
 *
 * @param string The input string.
 * @param characters The list of characters to be removed.
 * @return The modified string after removing the specified characters.
 */
fun removeCharacters(string: String, characters: List<Char>): String {

    var newString = ""
    for (char in string) {
        if (char !in characters) {
            newString += char
        }
    }
    return newString
}