/**
 * This function takes a nested tuple containing the names of photographers and their corresponding photos.
 * It assigns each photo to the respective photographer and returns a dictionary with the assignments.
 *
 * @param photos A nested tuple containing the photographers and their photos.
 * @return A dictionary with the assignments of photos to photographers.
 */
fun assignPhotos(photos: List<Pair<String, List<String>>>): Map<String, List<String>> {

    val assignments = mutableMapOf<String, MutableList<String>>()

    // Iterate through the nested tuple
    for ((photographer, photosList) in photos) {
        if (photographer !in assignments) {
            assignments[photographer] = mutableListOf()
        }

        // Assign each photo to the corresponding photographer
        assignments[photographer]?.addAll(photosList)
    }

    return assignments
}
/**
 * This function takes a nested tuple containing the names of photographers and their corresponding photos.
 * It assigns each photo to the respective photographer and returns a dictionary with the assignments.
 *
 * @param photos A nested tuple containing the photographers and their photos.
 * @return A dictionary with the assignments of photos to photographers.
 */
fun assignPhotos(photos: List<Pair<String, List<String>>>): Map<String, List<String>> {
/**
 * This function takes a nested tuple containing the names of photographers and their corresponding photos.
 * It assigns each photo to the respective photographer and returns a dictionary with the assignments.
 *
 * @param photos A nested tuple containing the photographers and their photos.
 * @return A dictionary with the assignments of photos to photographers.
 */
fun assignPhotos(photos: List<Pair<String, List<String>>>): Map<String, List<String>> {

    val assignments = mutableMapOf<String, MutableList<String>>()

    // Iterate through the nested tuple
    for ((photographer, photosList) in photos) {
        if (photographer !in assignments) {
            assignments[photographer] = mutableListOf()
        }

        // Assign each photo to the corresponding photographer
        assignments[photographer]?.addAll(photosList)
    }

    return assignments
}