/**
 * An archaeologist is excavating a site and has two lists of artifacts. The first list represents the artifacts they have already found, while the second list represents the artifacts they are actively searching for. You need to write a function that removes the artifacts from the first list that are also present in the second list. The resulting list should only contain the artifacts that have not yet been found.
 *
 * @param list1 The artifacts already found.
 * @param list2 The artifacts actively being searched for.
 * @return The artifacts that have not yet been found.
 */
fun removeElements(list1: List<String>, list2: List<String>): List<String> {

    val intersection = list1.intersect(list2).toList()  // Find the artifacts present in both lists
    val newList = list1.filter { !intersection.contains(it) }  // Exclude the artifacts found in both lists
    return newList
}
/**
 * An archaeologist is excavating a site and has two lists of artifacts. The first list represents the artifacts they have already found, while the second list represents the artifacts they are actively searching for. You need to write a function that removes the artifacts from the first list that are also present in the second list. The resulting list should only contain the artifacts that have not yet been found.
 *
 * @param list1 The artifacts already found.
 * @param list2 The artifacts actively being searched for.
 * @return The artifacts that have not yet been found.
 */
fun removeElements(list1: List<String>, list2: List<String>): List<String> {
/**
 * An archaeologist is excavating a site and has two lists of artifacts. The first list represents the artifacts they have already found, while the second list represents the artifacts they are actively searching for. You need to write a function that removes the artifacts from the first list that are also present in the second list. The resulting list should only contain the artifacts that have not yet been found.
 *
 * @param list1 The artifacts already found.
 * @param list2 The artifacts actively being searched for.
 * @return The artifacts that have not yet been found.
 */
fun removeElements(list1: List<String>, list2: List<String>): List<String> {

    val intersection = list1.intersect(list2).toList()  // Find the artifacts present in both lists
    val newList = list1.filter { !intersection.contains(it) }  // Exclude the artifacts found in both lists
    return newList
}