/**
 * Checks the membership and conditions of an architect to determine if they are allowed access
 */
fun checkMembership(architecture: String, permit: String): String {

    return when {
        architecture == "Modern" && permit == "Valid" -> "Access Granted. Architect has a valid permit for modern architecture."
        architecture == "Traditional" && permit == "Valid" -> "Access Granted. Architect has a valid permit for traditional architecture."
        architecture == "Contemporary" && permit == "Valid" -> "Access Granted. Architect has a valid permit for contemporary architecture."
        architecture == "Modern" && permit == "Expired" -> "Access Denied. Architect's permit for modern architecture has expired."
        architecture == "Traditional" && permit == "Expired" -> "Access Denied. Architect's permit for traditional architecture has expired."
        architecture == "Contemporary" && permit == "Expired" -> "Access Denied. Architect's permit for contemporary architecture has expired."
        architecture == "Modern" && permit != "Valid" && permit != "Expired" -> "Access Denied. Invalid permit status."
        architecture == "Traditional" && permit != "Valid" && permit != "Expired" -> "Access Denied. Invalid permit status."
        else -> "Access Denied."
    }
}
/**
 * Checks the membership and conditions of an architect to determine if they are allowed access
 */
fun checkMembership(architecture: String, permit: String): String {
/**
 * Checks the membership and conditions of an architect to determine if they are allowed access
 */
fun checkMembership(architecture: String, permit: String): String {

    return when {
        architecture == "Modern" && permit == "Valid" -> "Access Granted. Architect has a valid permit for modern architecture."
        architecture == "Traditional" && permit == "Valid" -> "Access Granted. Architect has a valid permit for traditional architecture."
        architecture == "Contemporary" && permit == "Valid" -> "Access Granted. Architect has a valid permit for contemporary architecture."
        architecture == "Modern" && permit == "Expired" -> "Access Denied. Architect's permit for modern architecture has expired."
        architecture == "Traditional" && permit == "Expired" -> "Access Denied. Architect's permit for traditional architecture has expired."
        architecture == "Contemporary" && permit == "Expired" -> "Access Denied. Architect's permit for contemporary architecture has expired."
        architecture == "Modern" && permit != "Valid" && permit != "Expired" -> "Access Denied. Invalid permit status."
        architecture == "Traditional" && permit != "Valid" && permit != "Expired" -> "Access Denied. Invalid permit status."
        else -> "Access Denied."
    }
}