/**
 * Given the name of an artist and a painting, this function checks if the artist is not painting a specific artwork.
 *
 * @param artist the name of the artist
 * @param painting the name of the painting
 * @return true if the artist is not painting the specified artwork, false otherwise
 */
fun isArtistPainting(artist: String?, painting: String?): Boolean {

    // Check if the artist is not currently painting the specified artwork
    return when {
        artist != null && painting != null -> {
            when {
                artist == "Leonardo da Vinci" && painting != "Mona Lisa" -> true
                artist == "Vincent van Gogh" && painting != "Starry Night" -> true
                artist == "Pablo Picasso" && painting != "Guernica" -> true
                else -> false
            }
        }
        else -> false
    }
}
/**
 * Given the name of an artist and a painting, this function checks if the artist is not painting a specific artwork.
 *
 * @param artist the name of the artist
 * @param painting the name of the painting
 * @return true if the artist is not painting the specified artwork, false otherwise
 */
fun isArtistPainting(artist: String?, painting: String?): Boolean {
/**
 * Given the name of an artist and a painting, this function checks if the artist is not painting a specific artwork.
 *
 * @param artist the name of the artist
 * @param painting the name of the painting
 * @return true if the artist is not painting the specified artwork, false otherwise
 */
fun isArtistPainting(artist: String?, painting: String?): Boolean {

    // Check if the artist is not currently painting the specified artwork
    return when {
        artist != null && painting != null -> {
            when {
                artist == "Leonardo da Vinci" && painting != "Mona Lisa" -> true
                artist == "Vincent van Gogh" && painting != "Starry Night" -> true
                artist == "Pablo Picasso" && painting != "Guernica" -> true
                else -> false
            }
        }
        else -> false
    }
}