/**
 * Given a dictionary of patients and a specific patient ID, return the index of the patient in the list.
 * If the patient is not found, return -1.
 *
 * @param patients Dictionary of patients where the keys are patient IDs and the values are patient names.
 * @param id Specific patient ID to search for.
 * @return Index of the patient in the list or -1 if not found.
 */
fun nurseIndex(patients: Map<Int, String>, id: Int): Int {

    val patientIds = patients.keys
    var index = 0

    for (patientId in patientIds) {
        if (patientId == id) {
            return index
        }
        index++
    }

    return -1
}
/**
 * Given a dictionary of patients and a specific patient ID, return the index of the patient in the list.
 * If the patient is not found, return -1.
 *
 * @param patients Dictionary of patients where the keys are patient IDs and the values are patient names.
 * @param id Specific patient ID to search for.
 * @return Index of the patient in the list or -1 if not found.
 */
fun nurseIndex(patients: Map<Int, String>, id: Int): Int {
/**
 * Given a dictionary of patients and a specific patient ID, return the index of the patient in the list.
 * If the patient is not found, return -1.
 *
 * @param patients Dictionary of patients where the keys are patient IDs and the values are patient names.
 * @param id Specific patient ID to search for.
 * @return Index of the patient in the list or -1 if not found.
 */
fun nurseIndex(patients: Map<Int, String>, id: Int): Int {

    val patientIds = patients.keys
    var index = 0

    for (patientId in patientIds) {
        if (patientId == id) {
            return index
        }
        index++
    }

    return -1
}