/**
 * This function takes a string as input, removes all the vowels from the string, and adds the given number to each of the remaining characters.
 * The output is a modified string with vowels removed and numbers added to characters.
 *
 * @param string The input string from which vowels need to be removed and numbers should be added.
 * @param number The number that should be added to each character.
 * @return The modified string with vowels removed and numbers added to characters.
 */
fun removeVowelsAndAddNumbers(string: String, number: Int): String {

    val vowelLetters = listOf('a', 'e', 'i', 'o', 'u')
    var modifiedString = ""

    for (char in string) {
        // Removing vowels
        if (char.toLowerCase() !in vowelLetters && char.isLetter()) {
            // Adding number to the character
            modifiedString += (char.toInt() + number).toChar()
        }
    }

    return modifiedString
}
/**
 * This function takes a string as input, removes all the vowels from the string, and adds the given number to each of the remaining characters.
 * The output is a modified string with vowels removed and numbers added to characters.
 *
 * @param string The input string from which vowels need to be removed and numbers should be added.
 * @param number The number that should be added to each character.
 * @return The modified string with vowels removed and numbers added to characters.
 */
fun removeVowelsAndAddNumbers(string: String, number: Int): String {
/**
 * This function takes a string as input, removes all the vowels from the string, and adds the given number to each of the remaining characters.
 * The output is a modified string with vowels removed and numbers added to characters.
 *
 * @param string The input string from which vowels need to be removed and numbers should be added.
 * @param number The number that should be added to each character.
 * @return The modified string with vowels removed and numbers added to characters.
 */
fun removeVowelsAndAddNumbers(string: String, number: Int): String {

    val vowelLetters = listOf('a', 'e', 'i', 'o', 'u')
    var modifiedString = ""

    for (char in string) {
        // Removing vowels
        if (char.toLowerCase() !in vowelLetters && char.isLetter()) {
            // Adding number to the character
            modifiedString += (char.toInt() + number).toChar()
        }
    }

    return modifiedString
}