/**
 * This function takes a string and a character as input, and deletes all occurrences
 * of the given character in the string. The modified string is then returned.
 */
fun deleteCharInString(text: String, charToDelete: Char): String {

    var modifiedText = ""

    for (char in text) {
        if (char != charToDelete) {
            modifiedText += char
        }
    }

    return modifiedText
}
/**
 * This function takes a string and a character as input, and deletes all occurrences
 * of the given character in the string. The modified string is then returned.
 */
fun deleteCharInString(text: String, charToDelete: Char): String {
/**
 * This function takes a string and a character as input, and deletes all occurrences
 * of the given character in the string. The modified string is then returned.
 */
fun deleteCharInString(text: String, charToDelete: Char): String {

    var modifiedText = ""

    for (char in text) {
        if (char != charToDelete) {
            modifiedText += char
        }
    }

    return modifiedText
}