/**
 * Given a list of blood pressure readings for patients, 
 * this function returns a list of patients who have blood pressure greater than or equal to a given threshold value.
 * 
 * @param bloodPressureReadings A list of integers representing blood pressure readings for each patient.
 * @param threshold The threshold value to determine high blood pressure.
 * @return A list of patients who have blood pressure greater than or equal to the threshold.
 * 
 * Example:
 * bloodPressureReadings = [120, 140, 110, 160, 135, 115, 150]
 * threshold = 130
 * findPatientsWithHighBloodPressure(bloodPressureReadings, threshold) // [140, 160, 135, 150]
 */
fun findPatientsWithHighBloodPressure(bloodPressureReadings: List<Int>, threshold: Int): List<Int> {

    val highBloodPressurePatients = mutableListOf<Int>()
    
    for (reading in bloodPressureReadings) {
        if (reading >= threshold) {
            highBloodPressurePatients.add(reading)
        }
    }
    
    return highBloodPressurePatients
}
/**
 * Given a list of blood pressure readings for patients, 
 * this function returns a list of patients who have blood pressure greater than or equal to a given threshold value.
 * 
 * @param bloodPressureReadings A list of integers representing blood pressure readings for each patient.
 * @param threshold The threshold value to determine high blood pressure.
 * @return A list of patients who have blood pressure greater than or equal to the threshold.
 * 
 * Example:
 * bloodPressureReadings = [120, 140, 110, 160, 135, 115, 150]
 * threshold = 130
 * findPatientsWithHighBloodPressure(bloodPressureReadings, threshold) // [140, 160, 135, 150]
 */
fun findPatientsWithHighBloodPressure(bloodPressureReadings: List<Int>, threshold: Int): List<Int> {
/**
 * Given a list of blood pressure readings for patients, 
 * this function returns a list of patients who have blood pressure greater than or equal to a given threshold value.
 * 
 * @param bloodPressureReadings A list of integers representing blood pressure readings for each patient.
 * @param threshold The threshold value to determine high blood pressure.
 * @return A list of patients who have blood pressure greater than or equal to the threshold.
 * 
 * Example:
 * bloodPressureReadings = [120, 140, 110, 160, 135, 115, 150]
 * threshold = 130
 * findPatientsWithHighBloodPressure(bloodPressureReadings, threshold) // [140, 160, 135, 150]
 */
fun findPatientsWithHighBloodPressure(bloodPressureReadings: List<Int>, threshold: Int): List<Int> {

    val highBloodPressurePatients = mutableListOf<Int>()
    
    for (reading in bloodPressureReadings) {
        if (reading >= threshold) {
            highBloodPressurePatients.add(reading)
        }
    }
    
    return highBloodPressurePatients
}