/**
 * This function takes two dictionaries as input and returns a new dictionary containing the intersection
 * of the items present in both dictionaries.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return Dictionary containing the intersection of items from both dictionaries
 */
fun getDictionaryIntersection(dictionary1: Map<String, String>, dictionary2: Map<String, String>): Map<String, String> {

    // Initialize an empty dictionary to store the intersection
    val intersectionDict = mutableMapOf<String, String>()

    // Iterate over the items in the first dictionary
    for ((key, value) in dictionary1) {
        // Check if the item exists in the second dictionary and the values match
        if (dictionary2.containsKey(key) && value == dictionary2[key]) {
            // Add the item to the intersection dictionary
            intersectionDict[key] = value
        }
    }

    return intersectionDict
}
/**
 * This function takes two dictionaries as input and returns a new dictionary containing the intersection
 * of the items present in both dictionaries.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return Dictionary containing the intersection of items from both dictionaries
 */
fun getDictionaryIntersection(dictionary1: Map<String, String>, dictionary2: Map<String, String>): Map<String, String> {
/**
 * This function takes two dictionaries as input and returns a new dictionary containing the intersection
 * of the items present in both dictionaries.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return Dictionary containing the intersection of items from both dictionaries
 */
fun getDictionaryIntersection(dictionary1: Map<String, String>, dictionary2: Map<String, String>): Map<String, String> {

    // Initialize an empty dictionary to store the intersection
    val intersectionDict = mutableMapOf<String, String>()

    // Iterate over the items in the first dictionary
    for ((key, value) in dictionary1) {
        // Check if the item exists in the second dictionary and the values match
        if (dictionary2.containsKey(key) && value == dictionary2[key]) {
            // Add the item to the intersection dictionary
            intersectionDict[key] = value
        }
    }

    return intersectionDict
}