/**
 * This function takes a string and a character as input and replaces all occurrences of the character in the string with the word 'None'.
 * It then returns the modified string.
 */
fun replaceChar(inputString: String, char: Char): String {

    // Initialize an empty string to store the modified string
    var modifiedString = ""

    // Iterate over each character in the input string using a for loop
    for (i in inputString.indices) {
        // Check if the current character matches the character to be replaced
        if (inputString[i] == char) {
            // Replace the character with the word 'None' and append it to the modified string
            modifiedString += "None"
        } else {
            // Append the current character to the modified string as it is
            modifiedString += inputString[i]
        }
    }

    // Return the modified string
    return modifiedString
}
/**
 * This function takes a string and a character as input and replaces all occurrences of the character in the string with the word 'None'.
 * It then returns the modified string.
 */
fun replaceChar(inputString: String, char: Char): String {
/**
 * This function takes a string and a character as input and replaces all occurrences of the character in the string with the word 'None'.
 * It then returns the modified string.
 */
fun replaceChar(inputString: String, char: Char): String {

    // Initialize an empty string to store the modified string
    var modifiedString = ""

    // Iterate over each character in the input string using a for loop
    for (i in inputString.indices) {
        // Check if the current character matches the character to be replaced
        if (inputString[i] == char) {
            // Replace the character with the word 'None' and append it to the modified string
            modifiedString += "None"
        } else {
            // Append the current character to the modified string as it is
            modifiedString += inputString[i]
        }
    }

    // Return the modified string
    return modifiedString
}