/**
 * This function takes a list of patients and counts the number of patients that have multiple medical conditions.
 *
 * @param patients a list of pairs, where each pair represents a patient and their medical conditions
 * @return an integer representing the number of patients with multiple medical conditions
 */
fun countPatients(patients: List<Pair<String, List<String>>>) : Int {

    var count = 0

    for (patient in patients) {
        val conditions = patient.second
        for (condition in conditions) {
            if (condition.length > 1) {
                count++
            }
        }
    }

    return count
}
/**
 * This function takes a list of patients and counts the number of patients that have multiple medical conditions.
 *
 * @param patients a list of pairs, where each pair represents a patient and their medical conditions
 * @return an integer representing the number of patients with multiple medical conditions
 */
fun countPatients(patients: List<Pair<String, List<String>>>) : Int {
/**
 * This function takes a list of patients and counts the number of patients that have multiple medical conditions.
 *
 * @param patients a list of pairs, where each pair represents a patient and their medical conditions
 * @return an integer representing the number of patients with multiple medical conditions
 */
fun countPatients(patients: List<Pair<String, List<String>>>) : Int {

    var count = 0

    for (patient in patients) {
        val conditions = patient.second
        for (condition in conditions) {
            if (condition.length > 1) {
                count++
            }
        }
    }

    return count
}