/**
 * This function censors specific words in a given text by replacing them with asterisks,
 * except for the provided exception word.
 */
fun censorTextWithExceptions(text: String, censorWords: List<String>, exceptionWord: String): String {

    var censoredText = text

    for (word in censorWords) {
        if (word != exceptionWord) {
            censoredText = censoredText.replace(word, "*".repeat(word.length))
        }
    }

    return censoredText
}
/**
 * This function censors specific words in a given text by replacing them with asterisks,
 * except for the provided exception word.
 */
fun censorTextWithExceptions(text: String, censorWords: List<String>, exceptionWord: String): String {
/**
 * This function censors specific words in a given text by replacing them with asterisks,
 * except for the provided exception word.
 */
fun censorTextWithExceptions(text: String, censorWords: List<String>, exceptionWord: String): String {

    var censoredText = text

    for (word in censorWords) {
        if (word != exceptionWord) {
            censoredText = censoredText.replace(word, "*".repeat(word.length))
        }
    }

    return censoredText
}