/**
 * You are an archaeologist working on a dig site and recently discovered a dictionary containing artifacts found in different layers of earth.
 * However, the dictionary has duplicate artifacts listed in different layers. Your task is to remove the duplicates from each layer and update the dictionary.
 *
 * @param dictionary A dictionary containing artifacts found in different layers of earth.
 * @return The updated dictionary with duplicates removed from each layer.
 */
fun removeDuplicates(dictionary: Map<String, List<String>>): Map<String, List<String>> {

    val updatedDictionary = mutableMapOf<String, List<String>>()

    for ((layer, artifacts) in dictionary) {
        val uniqueArtifacts = artifacts.toSet().toList()
        updatedDictionary[layer] = uniqueArtifacts
    }

    return updatedDictionary
}
/**
 * You are an archaeologist working on a dig site and recently discovered a dictionary containing artifacts found in different layers of earth.
 * However, the dictionary has duplicate artifacts listed in different layers. Your task is to remove the duplicates from each layer and update the dictionary.
 *
 * @param dictionary A dictionary containing artifacts found in different layers of earth.
 * @return The updated dictionary with duplicates removed from each layer.
 */
fun removeDuplicates(dictionary: Map<String, List<String>>): Map<String, List<String>> {
/**
 * You are an archaeologist working on a dig site and recently discovered a dictionary containing artifacts found in different layers of earth.
 * However, the dictionary has duplicate artifacts listed in different layers. Your task is to remove the duplicates from each layer and update the dictionary.
 *
 * @param dictionary A dictionary containing artifacts found in different layers of earth.
 * @return The updated dictionary with duplicates removed from each layer.
 */
fun removeDuplicates(dictionary: Map<String, List<String>>): Map<String, List<String>> {

    val updatedDictionary = mutableMapOf<String, List<String>>()

    for ((layer, artifacts) in dictionary) {
        val uniqueArtifacts = artifacts.toSet().toList()
        updatedDictionary[layer] = uniqueArtifacts
    }

    return updatedDictionary
}