/**
 * Given a list of photographers and a list of photographers to remove,
 * remove the elements from the original list and create a copy of the modified list.
 *
 * @param photographerList A list of photographers.
 * @param removeList A list of photographers to remove.
 * @return A copy of the original list with the specified elements removed.
 */
fun removeCopyElements(photographerList: List<String>, removeList: List<String>): List<String> {

    // Create a copy of the original list
    val resultList = photographerList.toMutableList()

    // Iterate over the elements to be removed
    for (photographer in removeList) {
        // Loop through the result list and remove matching elements
        val iterator = resultList.listIterator()
        while (iterator.hasNext()) {
            if (iterator.next() == photographer) {
                iterator.remove()
            }
        }
    }

    return resultList.toList()
}
/**
 * Given a list of photographers and a list of photographers to remove,
 * remove the elements from the original list and create a copy of the modified list.
 *
 * @param photographerList A list of photographers.
 * @param removeList A list of photographers to remove.
 * @return A copy of the original list with the specified elements removed.
 */
fun removeCopyElements(photographerList: List<String>, removeList: List<String>): List<String> {
/**
 * Given a list of photographers and a list of photographers to remove,
 * remove the elements from the original list and create a copy of the modified list.
 *
 * @param photographerList A list of photographers.
 * @param removeList A list of photographers to remove.
 * @return A copy of the original list with the specified elements removed.
 */
fun removeCopyElements(photographerList: List<String>, removeList: List<String>): List<String> {

    // Create a copy of the original list
    val resultList = photographerList.toMutableList()

    // Iterate over the elements to be removed
    for (photographer in removeList) {
        // Loop through the result list and remove matching elements
        val iterator = resultList.listIterator()
        while (iterator.hasNext()) {
            if (iterator.next() == photographer) {
                iterator.remove()
            }
        }
    }

    return resultList.toList()
}