/**
 * Given an artist's name and their song lyrics, find the repeated vowels in the lyrics specific to the artist.
 * Return a sorted list of repeated vowels.
 */
fun findRepeatedVowels(artistName: String, songLyrics: String): List<Char> {

    val vowels = mutableListOf<Char>()
    val uniqueVowels = mutableListOf<Char>()
    val repeatedVowels = mutableListOf<Char>()

    for (letter in artistName) {
        if (letter.toLowerCase() in "aeiou" && letter.toLowerCase() !in vowels) {
            vowels.add(letter.toLowerCase())
        }
    }

    for (letter in songLyrics) {
        if (letter.toLowerCase() in vowels && letter.toLowerCase() !in uniqueVowels) {
            uniqueVowels.add(letter.toLowerCase())
        } else if (letter.toLowerCase() in uniqueVowels && letter.toLowerCase() !in repeatedVowels) {
            repeatedVowels.add(letter.toLowerCase())
        }
    }

    return repeatedVowels.sorted()
}
/**
 * Given an artist's name and their song lyrics, find the repeated vowels in the lyrics specific to the artist.
 * Return a sorted list of repeated vowels.
 */
fun findRepeatedVowels(artistName: String, songLyrics: String): List<Char> {
/**
 * Given an artist's name and their song lyrics, find the repeated vowels in the lyrics specific to the artist.
 * Return a sorted list of repeated vowels.
 */
fun findRepeatedVowels(artistName: String, songLyrics: String): List<Char> {

    val vowels = mutableListOf<Char>()
    val uniqueVowels = mutableListOf<Char>()
    val repeatedVowels = mutableListOf<Char>()

    for (letter in artistName) {
        if (letter.toLowerCase() in "aeiou" && letter.toLowerCase() !in vowels) {
            vowels.add(letter.toLowerCase())
        }
    }

    for (letter in songLyrics) {
        if (letter.toLowerCase() in vowels && letter.toLowerCase() !in uniqueVowels) {
            uniqueVowels.add(letter.toLowerCase())
        } else if (letter.toLowerCase() in uniqueVowels && letter.toLowerCase() !in repeatedVowels) {
            repeatedVowels.add(letter.toLowerCase())
        }
    }

    return repeatedVowels.sorted()
}