/**
 * Given the age and health condition of a nurse, determine their vaccine priority.
 *
 * @param age Nurse's age.
 * @param healthCondition Nurse's health condition.
 * @return The nurse's vaccine priority (1st or 2nd dose).
 */
fun determineVaccinePriority(age: Int, healthCondition: String): String {

    var vaccinePriority = ""

    when {
        age >= 60 || healthCondition == "Immunocompromised" -> vaccinePriority = "1st dose"
        age >= 45 || (healthCondition == "Hypertension" || healthCondition == "Obesity") -> vaccinePriority = "2nd dose"
        age >= 30 && healthCondition == "Pregnant" -> vaccinePriority = "1st dose"
        age >= 18 -> vaccinePriority = "2nd dose"
        else -> vaccinePriority = "Not eligible for vaccination."
    }

    return vaccinePriority
}
/**
 * Given the age and health condition of a nurse, determine their vaccine priority.
 *
 * @param age Nurse's age.
 * @param healthCondition Nurse's health condition.
 * @return The nurse's vaccine priority (1st or 2nd dose).
 */
fun determineVaccinePriority(age: Int, healthCondition: String): String {
/**
 * Given the age and health condition of a nurse, determine their vaccine priority.
 *
 * @param age Nurse's age.
 * @param healthCondition Nurse's health condition.
 * @return The nurse's vaccine priority (1st or 2nd dose).
 */
fun determineVaccinePriority(age: Int, healthCondition: String): String {

    var vaccinePriority = ""

    when {
        age >= 60 || healthCondition == "Immunocompromised" -> vaccinePriority = "1st dose"
        age >= 45 || (healthCondition == "Hypertension" || healthCondition == "Obesity") -> vaccinePriority = "2nd dose"
        age >= 30 && healthCondition == "Pregnant" -> vaccinePriority = "1st dose"
        age >= 18 -> vaccinePriority = "2nd dose"
        else -> vaccinePriority = "Not eligible for vaccination."
    }

    return vaccinePriority
}