/**
 * Create a loop to iterate through a list of letters and replace all occurrences of a certain word with another word.
 * The loop should only exit when the word to be replaced is found or all letters have been looped through.
 */
fun name(exitWord: Char, letters: MutableList<Char>): List<Char> {

    // Loop through each letter in the list
    for (i in letters.indices) {
        // Check if the letter is equal to the word to be replaced
        if (letters[i] == exitWord) {
            // Exit the loop if the word is found
            break
        } else {
            // Replace the current letter with a different word
            // TODO: your code here
        }
    }

    // Return the modified list of letters
    return letters
}
/**
 * Create a loop to iterate through a list of letters and replace all occurrences of a certain word with another word.
 * The loop should only exit when the word to be replaced is found or all letters have been looped through.
 */
fun name(exitWord: Char, letters: MutableList<Char>): List<Char> {
/**
 * Create a loop to iterate through a list of letters and replace all occurrences of a certain word with another word.
 * The loop should only exit when the word to be replaced is found or all letters have been looped through.
 */
fun name(exitWord: Char, letters: MutableList<Char>): List<Char> {

    // Loop through each letter in the list
    for (i in letters.indices) {
        // Check if the letter is equal to the word to be replaced
        if (letters[i] == exitWord) {
            // Exit the loop if the word is found
            break
        } else {
            // Replace the current letter with a different word
            // TODO: your code here
        }
    }

    // Return the modified list of letters
    return letters
}