/**
 * Given a list of nurses and a list of patients, this function should find the indexes where the nurses and patients
 * are equal.
 *
 * @param nurses A list of strings representing the names of the nurses.
 * @param patients A list of strings representing the names of the patients.
 * @return A list of integers representing the indexes where the nurses and patients are equal.
 */
fun findEqualIndexes(nurses: List<String>, patients: List<String>): List<Int> {

    val equalIndexes = mutableListOf<Int>()
    for ((index, pair) in nurses.zip(patients).withIndex()) {
        if (pair.first == pair.second) {
            equalIndexes.add(index)
        }
    }
    return equalIndexes
}
/**
 * Given a list of nurses and a list of patients, this function should find the indexes where the nurses and patients
 * are equal.
 *
 * @param nurses A list of strings representing the names of the nurses.
 * @param patients A list of strings representing the names of the patients.
 * @return A list of integers representing the indexes where the nurses and patients are equal.
 */
fun findEqualIndexes(nurses: List<String>, patients: List<String>): List<Int> {
/**
 * Given a list of nurses and a list of patients, this function should find the indexes where the nurses and patients
 * are equal.
 *
 * @param nurses A list of strings representing the names of the nurses.
 * @param patients A list of strings representing the names of the patients.
 * @return A list of integers representing the indexes where the nurses and patients are equal.
 */
fun findEqualIndexes(nurses: List<String>, patients: List<String>): List<Int> {

    val equalIndexes = mutableListOf<Int>()
    for ((index, pair) in nurses.zip(patients).withIndex()) {
        if (pair.first == pair.second) {
            equalIndexes.add(index)
        }
    }
    return equalIndexes
}