/**
 * This function takes a string and a list of vowels and replaces all the vowels
 * in the string with the character 'X'. The modified string is then returned.
 *
 * @param string The input string to modify.
 * @param vowels A list of vowels.
 * @return The modified string with vowels replaced by 'X'.
 */
fun replaceVowels(string: String, vowels: List<Char>): String {

    var modifiedString = ""
    for (char in string) {
        if (char in vowels) {
            modifiedString += 'X'
        } else {
            modifiedString += char
        }
    }
    return modifiedString
}
/**
 * This function takes a string and a list of vowels and replaces all the vowels
 * in the string with the character 'X'. The modified string is then returned.
 *
 * @param string The input string to modify.
 * @param vowels A list of vowels.
 * @return The modified string with vowels replaced by 'X'.
 */
fun replaceVowels(string: String, vowels: List<Char>): String {
/**
 * This function takes a string and a list of vowels and replaces all the vowels
 * in the string with the character 'X'. The modified string is then returned.
 *
 * @param string The input string to modify.
 * @param vowels A list of vowels.
 * @return The modified string with vowels replaced by 'X'.
 */
fun replaceVowels(string: String, vowels: List<Char>): String {

    var modifiedString = ""
    for (char in string) {
        if (char in vowels) {
            modifiedString += 'X'
        } else {
            modifiedString += char
        }
    }
    return modifiedString
}