/**
 * This function takes a list of artists and a list of painting styles, and returns a filtered list of artists who specialize in at least one of the given styles.
 *
 * @param artists a list of strings representing the artist names
 * @param styles a list of strings representing the painting styles
 * @return a list of strings representing the filtered artist names
 */
fun filterPaintings(artists: List<String>, styles: List<String>): List<String> {

    // Filter the artists based on the given painting styles using filter and any operator
    return artists.filter { artist -> styles.any { style -> artist.contains(style) } }
}
/**
 * This function takes a list of artists and a list of painting styles, and returns a filtered list of artists who specialize in at least one of the given styles.
 *
 * @param artists a list of strings representing the artist names
 * @param styles a list of strings representing the painting styles
 * @return a list of strings representing the filtered artist names
 */
fun filterPaintings(artists: List<String>, styles: List<String>): List<String> {
/**
 * This function takes a list of artists and a list of painting styles, and returns a filtered list of artists who specialize in at least one of the given styles.
 *
 * @param artists a list of strings representing the artist names
 * @param styles a list of strings representing the painting styles
 * @return a list of strings representing the filtered artist names
 */
fun filterPaintings(artists: List<String>, styles: List<String>): List<String> {

    // Filter the artists based on the given painting styles using filter and any operator
    return artists.filter { artist -> styles.any { style -> artist.contains(style) } }
}