/**
 * Given a photographer and a list of new photos, update the photographer's list of photos with the new ones.
 *
 * @param photographer a list containing the existing photos of the photographer
 * @param newPhotos a list containing the new photos to be added
 * @return The updated list of photos with the new ones added, without modifying the original photographer's list
 *
 * Example:
 * If photographer = ['photo1.jpg', 'photo2.jpg', 'photo3.jpg'] and newPhotos = ['photo4.jpg', 'photo5.jpg'],
 * the function should return ['photo1.jpg', 'photo2.jpg', 'photo3.jpg', 'photo4.jpg', 'photo5.jpg']
 */
fun updatePhotographerPhotos(photographer: List<String>, newPhotos: List<String>): List<String> {

    val updatedPhotos = photographer.toMutableList() // Creating a copy of the original list to avoid modifying it directly

    // Adding each new photo to the updated list
    newPhotos.forEach { photo ->
        updatedPhotos.add(photo)
    }

    return updatedPhotos
}
/**
 * Given a photographer and a list of new photos, update the photographer's list of photos with the new ones.
 *
 * @param photographer a list containing the existing photos of the photographer
 * @param newPhotos a list containing the new photos to be added
 * @return The updated list of photos with the new ones added, without modifying the original photographer's list
 *
 * Example:
 * If photographer = ['photo1.jpg', 'photo2.jpg', 'photo3.jpg'] and newPhotos = ['photo4.jpg', 'photo5.jpg'],
 * the function should return ['photo1.jpg', 'photo2.jpg', 'photo3.jpg', 'photo4.jpg', 'photo5.jpg']
 */
fun updatePhotographerPhotos(photographer: List<String>, newPhotos: List<String>): List<String> {
/**
 * Given a photographer and a list of new photos, update the photographer's list of photos with the new ones.
 *
 * @param photographer a list containing the existing photos of the photographer
 * @param newPhotos a list containing the new photos to be added
 * @return The updated list of photos with the new ones added, without modifying the original photographer's list
 *
 * Example:
 * If photographer = ['photo1.jpg', 'photo2.jpg', 'photo3.jpg'] and newPhotos = ['photo4.jpg', 'photo5.jpg'],
 * the function should return ['photo1.jpg', 'photo2.jpg', 'photo3.jpg', 'photo4.jpg', 'photo5.jpg']
 */
fun updatePhotographerPhotos(photographer: List<String>, newPhotos: List<String>): List<String> {

    val updatedPhotos = photographer.toMutableList() // Creating a copy of the original list to avoid modifying it directly

    // Adding each new photo to the updated list
    newPhotos.forEach { photo ->
        updatedPhotos.add(photo)
    }

    return updatedPhotos
}