/**
 * This function determines whether an architect should be hired based on their years of experience.
 *
 * @param architect A map representing an architect with their name, age, and experience.
 * @return A message indicating whether the architect should be hired or not.
 */
fun hireArchitect(architect: Map<String, Any>): String {

    if (architect is Map<*, *>) {
        val yearsOfExperience = retrieveArchitectExperience(architect)
        return when {
            yearsOfExperience >= 10 -> "This architect is highly experienced. Hire them!"
            yearsOfExperience in 5 until 10 -> "This architect has a decent level of experience. Consider hiring them."
            yearsOfExperience < 5 -> "This architect has less than 5 years of experience. Do not hire."
            else -> "Invalid years of experience."
        }
    }
    return "Invalid architect data."
}

fun retrieveArchitectExperience(architect: Map<String, Any>): Int {
    // Implement logic to retrieve architect's years of experience from the map
    return architect["experience"] as? Int ?: 0
}
/**
 * This function determines whether an architect should be hired based on their years of experience.
 *
 * @param architect A map representing an architect with their name, age, and experience.
 * @return A message indicating whether the architect should be hired or not.
 */
fun hireArchitect(architect: Map<String, Any>): String {
/**
 * This function determines whether an architect should be hired based on their years of experience.
 *
 * @param architect A map representing an architect with their name, age, and experience.
 * @return A message indicating whether the architect should be hired or not.
 */
fun hireArchitect(architect: Map<String, Any>): String {

    if (architect is Map<*, *>) {
        val yearsOfExperience = retrieveArchitectExperience(architect)
        return when {
            yearsOfExperience >= 10 -> "This architect is highly experienced. Hire them!"
            yearsOfExperience in 5 until 10 -> "This architect has a decent level of experience. Consider hiring them."
            yearsOfExperience < 5 -> "This architect has less than 5 years of experience. Do not hire."
            else -> "Invalid years of experience."
        }
    }
    return "Invalid architect data."
}

fun retrieveArchitectExperience(architect: Map<String, Any>): Int {
    // Implement logic to retrieve architect's years of experience from the map
    return architect["experience"] as? Int ?: 0
}