/**
 * This function counts the number of vowels in a given text and replaces them with asterisks.
 */
fun countVowels(text: String): Pair<String, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    var vowelsCount = 0
    var modifiedText = text

    for (char in text) {
        if (char.toLowerCase() in vowels) {
            modifiedText = modifiedText.replace(char.toString(), "*")
            vowelsCount++
        }
    }

    return Pair(modifiedText, vowelsCount)
}
/**
 * This function counts the number of vowels in a given text and replaces them with asterisks.
 */
fun countVowels(text: String): Pair<String, Int> {
/**
 * This function counts the number of vowels in a given text and replaces them with asterisks.
 */
fun countVowels(text: String): Pair<String, Int> {

    val vowels = listOf('a', 'e', 'i', 'o', 'u')
    var vowelsCount = 0
    var modifiedText = text

    for (char in text) {
        if (char.toLowerCase() in vowels) {
            modifiedText = modifiedText.replace(char.toString(), "*")
            vowelsCount++
        }
    }

    return Pair(modifiedText, vowelsCount)
}