/**
 * This function censors specific words in a given text by replacing them with asterisks.
 */
fun censorText(text: String, censorWords: List<String>): String {

    var censoredText = text

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

    return censoredText
}
/**
 * This function censors specific words in a given text by replacing them with asterisks.
 */
fun censorText(text: String, censorWords: List<String>): String {
/**
 * This function censors specific words in a given text by replacing them with asterisks.
 */
fun censorText(text: String, censorWords: List<String>): String {

    var censoredText = text

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

    return censoredText
}