/**
 * Given a dictionary of artists and their color palettes, find the common colors among all artists.
 *
 * @param artists A dictionary where keys are artist names and values are lists of colors.
 * @return A list of common colors found in all artist's palettes.
 */
fun findCommonColors(artists: Map<String, List<String>>): List<String> {

    var commonColors = artists.values.first().toSet() // Initialize with colors from the first artist
    for ((_, colors) in artists) {
        commonColors = commonColors.intersect(colors.toSet()) // Intersect colors with common colors
    }
    return commonColors.toList()
}
/**
 * Given a dictionary of artists and their color palettes, find the common colors among all artists.
 *
 * @param artists A dictionary where keys are artist names and values are lists of colors.
 * @return A list of common colors found in all artist's palettes.
 */
fun findCommonColors(artists: Map<String, List<String>>): List<String> {
/**
 * Given a dictionary of artists and their color palettes, find the common colors among all artists.
 *
 * @param artists A dictionary where keys are artist names and values are lists of colors.
 * @return A list of common colors found in all artist's palettes.
 */
fun findCommonColors(artists: Map<String, List<String>>): List<String> {

    var commonColors = artists.values.first().toSet() // Initialize with colors from the first artist
    for ((_, colors) in artists) {
        commonColors = commonColors.intersect(colors.toSet()) // Intersect colors with common colors
    }
    return commonColors.toList()
}