/**
 * Given a text and a list of names, the function replaces each occurrence of a name in the text with the value None.
 *
 * @param text The input text
 * @param names The list of names
 * @return The modified text with names replaced by None
 */
fun replaceNamesWithNone(text: String, names: List<String>): String {

    var modifiedText = text
    // Iterate over each name in the list
    for (name in names) {
        // Replace the name with None in the text
        modifiedText = modifiedText.replace(name, "None")
    }
    return modifiedText
}
/**
 * Given a text and a list of names, the function replaces each occurrence of a name in the text with the value None.
 *
 * @param text The input text
 * @param names The list of names
 * @return The modified text with names replaced by None
 */
fun replaceNamesWithNone(text: String, names: List<String>): String {
/**
 * Given a text and a list of names, the function replaces each occurrence of a name in the text with the value None.
 *
 * @param text The input text
 * @param names The list of names
 * @return The modified text with names replaced by None
 */
fun replaceNamesWithNone(text: String, names: List<String>): String {

    var modifiedText = text
    // Iterate over each name in the list
    for (name in names) {
        // Replace the name with None in the text
        modifiedText = modifiedText.replace(name, "None")
    }
    return modifiedText
}