/**
 * Given a list of patient records, find the appropriate record for a specific patient.
 *
 * @param patientName The name of the patient to search for.
 * @param records A list containing tuples with patient information. Each tuple follows the format (name, age, condition).
 * @return The record of the patient if found, or null if the patient is not in the records.
 */
fun findPatient(patientName: String, records: List<Triple<String, Int, String>>): Triple<String, Int, String>? {

    for (record in records) {
        val (name, age, condition) = record

        if (name == patientName) {
            return record
        }
    }
    return null
}
/**
 * Given a list of patient records, find the appropriate record for a specific patient.
 *
 * @param patientName The name of the patient to search for.
 * @param records A list containing tuples with patient information. Each tuple follows the format (name, age, condition).
 * @return The record of the patient if found, or null if the patient is not in the records.
 */
fun findPatient(patientName: String, records: List<Triple<String, Int, String>>): Triple<String, Int, String>? {
/**
 * Given a list of patient records, find the appropriate record for a specific patient.
 *
 * @param patientName The name of the patient to search for.
 * @param records A list containing tuples with patient information. Each tuple follows the format (name, age, condition).
 * @return The record of the patient if found, or null if the patient is not in the records.
 */
fun findPatient(patientName: String, records: List<Triple<String, Int, String>>): Triple<String, Int, String>? {

    for (record in records) {
        val (name, age, condition) = record

        if (name == patientName) {
            return record
        }
    }
    return null
}