/**
 * Takes in a dictionary of architects' names and their corresponding years of experience.
 * Returns the number of years of experience for a given architect.
 * If the architect's name is not found in the dictionary, returns "Architect not found".
 */
fun getArchitectExperience(experienceDict: Map<String, Int>, architectName: String): String {

    // Accessing the value for the given architect in the dictionary
    if (architectName in experienceDict) {
        val yearsOfExperience = experienceDict[architectName]

        // Nested conditional statements to check years of experience
        return when {
            yearsOfExperience!! >= 10 -> "The architect $architectName has $yearsOfExperience years of experience and is very experienced."
            yearsOfExperience >= 5 -> "The architect $architectName has $yearsOfExperience years of experience and is experienced."
            yearsOfExperience >= 2 -> "The architect $architectName has $yearsOfExperience years of experience and is somewhat experienced."
            else -> "The architect $architectName has $yearsOfExperience years of experience and is a beginner."
        }
    } else {
        return "Architect not found"
    }
}

// Example dictionary with
/**
 * Takes in a dictionary of architects' names and their corresponding years of experience.
 * Returns the number of years of experience for a given architect.
 * If the architect's name is not found in the dictionary, returns "Architect not found".
 */
fun getArchitectExperience(experienceDict: Map<String, Int>, architectName: String): String {
/**
 * Takes in a dictionary of architects' names and their corresponding years of experience.
 * Returns the number of years of experience for a given architect.
 * If the architect's name is not found in the dictionary, returns "Architect not found".
 */
fun getArchitectExperience(experienceDict: Map<String, Int>, architectName: String): String {

    // Accessing the value for the given architect in the dictionary
    if (architectName in experienceDict) {
        val yearsOfExperience = experienceDict[architectName]

        // Nested conditional statements to check years of experience
        return when {
            yearsOfExperience!! >= 10 -> "The architect $architectName has $yearsOfExperience years of experience and is very experienced."
            yearsOfExperience >= 5 -> "The architect $architectName has $yearsOfExperience years of experience and is experienced."
            yearsOfExperience >= 2 -> "The architect $architectName has $yearsOfExperience years of experience and is somewhat experienced."
            else -> "The architect $architectName has $yearsOfExperience years of experience and is a beginner."
        }
    } else {
        return "Architect not found"
    }
}

// Example dictionary with