/**
 * This function validates the information of a physician.
 *
 * @param name The name of the physician.
 * @param age The age of the physician.
 * @param specialties Dictionary containing the physician's areas of expertise. The keys are the names of the specialties,
 * and the values are boolean values indicating if the physician is specialized in that area (True)
 * or not (False).
 * @return A string indicating if the physician is valid or not.
 */
fun validatePhysician(name: String, age: Int, specialties: Map<String, Boolean>): String {

    // Check if the age is within the valid range (between 25 and 65)
    if (age !in 25..65) {
        return "Invalid physician age"
    }

    // Check if the physician has at least two specialties
    if (specialties.values.count { it } < 2) {
        return "Invalid number of specialties"
    }

    // Check if the physician is specialized in Orthopedics or Cardiology
    if (!specialties.getOrDefault("Orthopedics", false) && !specialties.getOrDefault("Cardiology", false)) {
        return "Not specialized in Orthopedics or Cardiology"
    }

    // Check if the physician is specialized in Obstetrics
    // Add your Obstetrics specialization check here if needed

    return "Physician is valid"
}
/**
 * This function validates the information of a physician.
 *
 * @param name The name of the physician.
 * @param age The age of the physician.
 * @param specialties Dictionary containing the physician's areas of expertise. The keys are the names of the specialties,
 * and the values are boolean values indicating if the physician is specialized in that area (True)
 * or not (False).
 * @return A string indicating if the physician is valid or not.
 */
fun validatePhysician(name: String, age: Int, specialties: Map<String, Boolean>): String {
/**
 * This function validates the information of a physician.
 *
 * @param name The name of the physician.
 * @param age The age of the physician.
 * @param specialties Dictionary containing the physician's areas of expertise. The keys are the names of the specialties,
 * and the values are boolean values indicating if the physician is specialized in that area (True)
 * or not (False).
 * @return A string indicating if the physician is valid or not.
 */
fun validatePhysician(name: String, age: Int, specialties: Map<String, Boolean>): String {

    // Check if the age is within the valid range (between 25 and 65)
    if (age !in 25..65) {
        return "Invalid physician age"
    }

    // Check if the physician has at least two specialties
    if (specialties.values.count { it } < 2) {
        return "Invalid number of specialties"
    }

    // Check if the physician is specialized in Orthopedics or Cardiology
    if (!specialties.getOrDefault("Orthopedics", false) && !specialties.getOrDefault("Cardiology", false)) {
        return "Not specialized in Orthopedics or Cardiology"
    }

    // Check if the physician is specialized in Obstetrics
    // Add your Obstetrics specialization check here if needed

    return "Physician is valid"
}