/**
 * This function takes in two lists; 'nurses' and 'patients'.
 * The function should return a list of index values in 'nurses' where the same value appears in 'patients'.
 */
fun isPatientIndex(nurses: List<String>, patients: List<String>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (nurse in nurses) {
        for (patient in patients) {
            if (nurse == patient) {
                intersection.add(nurses.indexOf(nurse))
            }
        }
    }

    return intersection
}
/**
 * This function takes in two lists; 'nurses' and 'patients'.
 * The function should return a list of index values in 'nurses' where the same value appears in 'patients'.
 */
fun isPatientIndex(nurses: List<String>, patients: List<String>): List<Int> {
/**
 * This function takes in two lists; 'nurses' and 'patients'.
 * The function should return a list of index values in 'nurses' where the same value appears in 'patients'.
 */
fun isPatientIndex(nurses: List<String>, patients: List<String>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (nurse in nurses) {
        for (patient in patients) {
            if (nurse == patient) {
                intersection.add(nurses.indexOf(nurse))
            }
        }
    }

    return intersection
}