/**
 * The archaeologistDictionaryIntersection function takes in two dictionaries as arguments and returns a new dictionary containing the intersection
 * of the two dictionaries, focusing exclusively on negative integer keys.
 *
 * @param dictionary1 The first input dictionary.
 * @param dictionary2 The second input dictionary.
 * @return A new dictionary containing the intersection of the negative integer keys from dictionary1 and dictionary2.
 */
fun archaeologistDictionaryIntersection(dictionary1: Map<Int, Int>, dictionary2: Map<Int, Int>): Map<Int, Int> {

    val intersectionDict = mutableMapOf<Int, Int>()

    // Iterate over the keys in dictionary1
    for ((key, value) in dictionary1) {
        // Check if the key is a negative integer
        if (key < 0) {
            // Check if the key is present in dictionary2
            if (dictionary2.containsKey(key)) {
                // Add the key-value pair to the intersectionDict
                intersectionDict[key] = value + dictionary2.getValue(key)
            }
        }
    }

    return intersectionDict
}
/**
 * The archaeologistDictionaryIntersection function takes in two dictionaries as arguments and returns a new dictionary containing the intersection
 * of the two dictionaries, focusing exclusively on negative integer keys.
 *
 * @param dictionary1 The first input dictionary.
 * @param dictionary2 The second input dictionary.
 * @return A new dictionary containing the intersection of the negative integer keys from dictionary1 and dictionary2.
 */
fun archaeologistDictionaryIntersection(dictionary1: Map<Int, Int>, dictionary2: Map<Int, Int>): Map<Int, Int> {
/**
 * The archaeologistDictionaryIntersection function takes in two dictionaries as arguments and returns a new dictionary containing the intersection
 * of the two dictionaries, focusing exclusively on negative integer keys.
 *
 * @param dictionary1 The first input dictionary.
 * @param dictionary2 The second input dictionary.
 * @return A new dictionary containing the intersection of the negative integer keys from dictionary1 and dictionary2.
 */
fun archaeologistDictionaryIntersection(dictionary1: Map<Int, Int>, dictionary2: Map<Int, Int>): Map<Int, Int> {

    val intersectionDict = mutableMapOf<Int, Int>()

    // Iterate over the keys in dictionary1
    for ((key, value) in dictionary1) {
        // Check if the key is a negative integer
        if (key < 0) {
            // Check if the key is present in dictionary2
            if (dictionary2.containsKey(key)) {
                // Add the key-value pair to the intersectionDict
                intersectionDict[key] = value + dictionary2.getValue(key)
            }
        }
    }

    return intersectionDict
}