/**
 * This function takes a set of photos and a list of new photos, and appends the new photos to the existing set.
 *
 * @param photos a set of existing photos
 * @param newPhotos a list of new photos
 * @return The updated set of photos with the new photos appended
 */
fun addPhotosToGallery(photos: MutableSet<String>, newPhotos: List<String>): MutableSet<String> {

    for (newPhoto in newPhotos) {
        if (newPhoto !in photos) {
            photos.add(newPhoto)
        }
    }
    return photos
}

// Example usage
/**
 * This function takes a set of photos and a list of new photos, and appends the new photos to the existing set.
 *
 * @param photos a set of existing photos
 * @param newPhotos a list of new photos
 * @return The updated set of photos with the new photos appended
 */
fun addPhotosToGallery(photos: MutableSet<String>, newPhotos: List<String>): MutableSet<String> {
/**
 * This function takes a set of photos and a list of new photos, and appends the new photos to the existing set.
 *
 * @param photos a set of existing photos
 * @param newPhotos a list of new photos
 * @return The updated set of photos with the new photos appended
 */
fun addPhotosToGallery(photos: MutableSet<String>, newPhotos: List<String>): MutableSet<String> {

    for (newPhoto in newPhotos) {
        if (newPhoto !in photos) {
            photos.add(newPhoto)
        }
    }
    return photos
}

// Example usage