/**
 * Given a list of nurses and a list of shift requirements, find the nurses who satisfy all the requirements.
 *
 * @param nurses A list of nurse names
 * @param requirements A list of shift requirements
 * @return A list of nurses who satisfy all the requirements
 */
fun findShifts(nurses: List<String>, requirements: List<String>): List<String> {

    val qualifiedNurses = mutableListOf<String>()

    for (nurse in nurses) {
        var satisfiesAllRequirements = true

        for (requirement in requirements) {
            if (!nurse.contains(requirement)) {
                satisfiesAllRequirements = false
                break
            }
        }

        if (satisfiesAllRequirements) {
            qualifiedNurses.add(nurse)
        }
    }

    return qualifiedNurses
}
/**
 * Given a list of nurses and a list of shift requirements, find the nurses who satisfy all the requirements.
 *
 * @param nurses A list of nurse names
 * @param requirements A list of shift requirements
 * @return A list of nurses who satisfy all the requirements
 */
fun findShifts(nurses: List<String>, requirements: List<String>): List<String> {
/**
 * Given a list of nurses and a list of shift requirements, find the nurses who satisfy all the requirements.
 *
 * @param nurses A list of nurse names
 * @param requirements A list of shift requirements
 * @return A list of nurses who satisfy all the requirements
 */
fun findShifts(nurses: List<String>, requirements: List<String>): List<String> {

    val qualifiedNurses = mutableListOf<String>()

    for (nurse in nurses) {
        var satisfiesAllRequirements = true

        for (requirement in requirements) {
            if (!nurse.contains(requirement)) {
                satisfiesAllRequirements = false
                break
            }
        }

        if (satisfiesAllRequirements) {
            qualifiedNurses.add(nurse)
        }
    }

    return qualifiedNurses
}