/**
 * This function checks if an artist is famous based on their name, age, and style.
 * To be considered famous, the artist must meet at least one of the following conditions:
 * - The name starts with 'The' and they are under 30 years old
 * - The age is between 50 and 70 (inclusive) and they have a modern style
 * - The style is 'Abstract' and they are above 40 years old
 * - The age is an even number and the name has more than 3 characters
 *
 * @param name The name of the artist.
 * @param age The age of the artist.
 * @param style The style of their artwork.
 * @return True if the artist is famous, False otherwise.
 */
fun areTheyAFamousArtist(name: String, age: Int, style: String): Boolean {

    return name.startsWith("The") && age < 30 ||
            (age in 50..70 && style == "Modern") ||
            (style == "Abstract" && age > 40) ||
            (age % 2 == 0 && name.length > 3)
}
/**
 * This function checks if an artist is famous based on their name, age, and style.
 * To be considered famous, the artist must meet at least one of the following conditions:
 * - The name starts with 'The' and they are under 30 years old
 * - The age is between 50 and 70 (inclusive) and they have a modern style
 * - The style is 'Abstract' and they are above 40 years old
 * - The age is an even number and the name has more than 3 characters
 *
 * @param name The name of the artist.
 * @param age The age of the artist.
 * @param style The style of their artwork.
 * @return True if the artist is famous, False otherwise.
 */
fun areTheyAFamousArtist(name: String, age: Int, style: String): Boolean {
/**
 * This function checks if an artist is famous based on their name, age, and style.
 * To be considered famous, the artist must meet at least one of the following conditions:
 * - The name starts with 'The' and they are under 30 years old
 * - The age is between 50 and 70 (inclusive) and they have a modern style
 * - The style is 'Abstract' and they are above 40 years old
 * - The age is an even number and the name has more than 3 characters
 *
 * @param name The name of the artist.
 * @param age The age of the artist.
 * @param style The style of their artwork.
 * @return True if the artist is famous, False otherwise.
 */
fun areTheyAFamousArtist(name: String, age: Int, style: String): Boolean {

    return name.startsWith("The") && age < 30 ||
            (age in 50..70 && style == "Modern") ||
            (style == "Abstract" && age > 40) ||
            (age % 2 == 0 && name.length > 3)
}