/**
 * This function takes in three lists - nurses, areas, and initialShifts.
 * It creates a register for nurses and assigns initial shifts for each area.
 * The initial shifts are added to the respective areas in the register.
 * The register is then returned.
 */
fun createNurseRegister(nurses: List<String>, areas: List<String>, initialShifts: Int): Map<String, Map<String, List<String>>> {

    val nurseRegister = mutableMapOf<String, MutableMap<String, MutableList<String>>>()

    for (nurse in nurses) {
        nurseRegister[nurse] = mutableMapOf()

        for (area in areas) {
            nurseRegister[nurse]!![area] = mutableListOf()

            repeat(initialShifts) {
                nurseRegister[nurse]!![area]!!.add("shift")
            }
        }
    }

    return nurseRegister
}
/**
 * This function takes in three lists - nurses, areas, and initialShifts.
 * It creates a register for nurses and assigns initial shifts for each area.
 * The initial shifts are added to the respective areas in the register.
 * The register is then returned.
 */
fun createNurseRegister(nurses: List<String>, areas: List<String>, initialShifts: Int): Map<String, Map<String, List<String>>> {
/**
 * This function takes in three lists - nurses, areas, and initialShifts.
 * It creates a register for nurses and assigns initial shifts for each area.
 * The initial shifts are added to the respective areas in the register.
 * The register is then returned.
 */
fun createNurseRegister(nurses: List<String>, areas: List<String>, initialShifts: Int): Map<String, Map<String, List<String>>> {

    val nurseRegister = mutableMapOf<String, MutableMap<String, MutableList<String>>>()

    for (nurse in nurses) {
        nurseRegister[nurse] = mutableMapOf()

        for (area in areas) {
            nurseRegister[nurse]!![area] = mutableListOf()

            repeat(initialShifts) {
                nurseRegister[nurse]!![area]!!.add("shift")
            }
        }
    }

    return nurseRegister
}