/**
 * This function filters a list of artists based on their genres and nationality.
 *
 * @param artists The list of artists.
 * @param genres The list of genres to filter.
 * @param nationality The nationality to filter.
 * @return A filtered list of artists.
 */
fun filterArtists(artists: List<Map<String, String>>, genres: List<String>, nationality: String): List<Map<String, String>> {

    val filteredArtists = mutableListOf<Map<String, String>>()

    for (artist in artists) {
        if (artist["genre"] !in genres && artist["nationality"]?.lowercase() != nationality.lowercase()) {
            filteredArtists.add(artist)
        }
    }

    return filteredArtists
}
/**
 * This function filters a list of artists based on their genres and nationality.
 *
 * @param artists The list of artists.
 * @param genres The list of genres to filter.
 * @param nationality The nationality to filter.
 * @return A filtered list of artists.
 */
fun filterArtists(artists: List<Map<String, String>>, genres: List<String>, nationality: String): List<Map<String, String>> {
/**
 * This function filters a list of artists based on their genres and nationality.
 *
 * @param artists The list of artists.
 * @param genres The list of genres to filter.
 * @param nationality The nationality to filter.
 * @return A filtered list of artists.
 */
fun filterArtists(artists: List<Map<String, String>>, genres: List<String>, nationality: String): List<Map<String, String>> {

    val filteredArtists = mutableListOf<Map<String, String>>()

    for (artist in artists) {
        if (artist["genre"] !in genres && artist["nationality"]?.lowercase() != nationality.lowercase()) {
            filteredArtists.add(artist)
        }
    }

    return filteredArtists
}