/**
 * Given a list of patients' temperatures, return a list of patients who have a fever.
 * A patient is considered to have a fever if their temperature is equal to or greater than the given threshold.
 *
 * @param temperatures A list of integers representing patients' temperatures.
 * @param threshold The temperature threshold for determining a fever.
 * @return A list of patients who have a fever.
 */
fun findFeverPatients(temperatures: List<Int>, threshold: Int): List<Int> {

    // Using filter function to create a list of patients who have a fever based on the threshold.
    return temperatures.filter { it >= threshold }
}
/**
 * Given a list of patients' temperatures, return a list of patients who have a fever.
 * A patient is considered to have a fever if their temperature is equal to or greater than the given threshold.
 *
 * @param temperatures A list of integers representing patients' temperatures.
 * @param threshold The temperature threshold for determining a fever.
 * @return A list of patients who have a fever.
 */
fun findFeverPatients(temperatures: List<Int>, threshold: Int): List<Int> {
/**
 * Given a list of patients' temperatures, return a list of patients who have a fever.
 * A patient is considered to have a fever if their temperature is equal to or greater than the given threshold.
 *
 * @param temperatures A list of integers representing patients' temperatures.
 * @param threshold The temperature threshold for determining a fever.
 * @return A list of patients who have a fever.
 */
fun findFeverPatients(temperatures: List<Int>, threshold: Int): List<Int> {

    // Using filter function to create a list of patients who have a fever based on the threshold.
    return temperatures.filter { it >= threshold }
}