/**
 * This function takes a word and replaces all vowels with the target letter, returning the modified word.
 */
fun replaceVowels(word: String, target: Char): String {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    var modifiedWord = ""
    for (letter in word) {
        if (letter.toLowerCase() in vowels) {
            modifiedWord += target
        } else {
            modifiedWord += letter
        }
    }
    return modifiedWord
}
/**
 * This function takes a word and replaces all vowels with the target letter, returning the modified word.
 */
fun replaceVowels(word: String, target: Char): String {
/**
 * This function takes a word and replaces all vowels with the target letter, returning the modified word.
 */
fun replaceVowels(word: String, target: Char): String {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    var modifiedWord = ""
    for (letter in word) {
        if (letter.toLowerCase() in vowels) {
            modifiedWord += target
        } else {
            modifiedWord += letter
        }
    }
    return modifiedWord
}