/**
 * Given a list of patients' blood pressure readings, find the patients with blood pressure greater than 140/90.
 */
fun findPatientsWithHigherBloodPressure(patientsData: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    // Initialize an empty list to store patients with high blood pressure
    val patientsWithHighBp = mutableListOf<Pair<Int, Int>>()

    // Iterate through each patient's blood pressure readings
    for (patient in patientsData) {
        // Retrieve the systolic and diastolic blood pressure readings
        val systolicBp = patient.first
        val diastolicBp = patient.second

        // Check if the patient's blood pressure is greater than 140/90
        if (systolicBp > 140 && diastolicBp > 90) {
            patientsWithHighBp.add(patient)
        }
    }

    return patientsWithHighBp
}
/**
 * Given a list of patients' blood pressure readings, find the patients with blood pressure greater than 140/90.
 */
fun findPatientsWithHigherBloodPressure(patientsData: List<Pair<Int, Int>>): List<Pair<Int, Int>> {
/**
 * Given a list of patients' blood pressure readings, find the patients with blood pressure greater than 140/90.
 */
fun findPatientsWithHigherBloodPressure(patientsData: List<Pair<Int, Int>>): List<Pair<Int, Int>> {

    // Initialize an empty list to store patients with high blood pressure
    val patientsWithHighBp = mutableListOf<Pair<Int, Int>>()

    // Iterate through each patient's blood pressure readings
    for (patient in patientsData) {
        // Retrieve the systolic and diastolic blood pressure readings
        val systolicBp = patient.first
        val diastolicBp = patient.second

        // Check if the patient's blood pressure is greater than 140/90
        if (systolicBp > 140 && diastolicBp > 90) {
            patientsWithHighBp.add(patient)
        }
    }

    return patientsWithHighBp
}