/**
 * This function takes two dictionaries as input and returns a new dictionary that contains only the keys that
 * are common to both input dictionaries.
 *
 * @param dictionary1 First input dictionary.
 * @param dictionary2 Second input dictionary.
 * @return New dictionary containing the common keys from the input dictionaries.
 */
fun getCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): Map<String, Any> {

    val commonKeys = mutableMapOf<String, Any>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonKeys[key] = dictionary1[key]!!
        }
    }

    return commonKeys
}
/**
 * This function takes two dictionaries as input and returns a new dictionary that contains only the keys that
 * are common to both input dictionaries.
 *
 * @param dictionary1 First input dictionary.
 * @param dictionary2 Second input dictionary.
 * @return New dictionary containing the common keys from the input dictionaries.
 */
fun getCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): Map<String, Any> {
/**
 * This function takes two dictionaries as input and returns a new dictionary that contains only the keys that
 * are common to both input dictionaries.
 *
 * @param dictionary1 First input dictionary.
 * @param dictionary2 Second input dictionary.
 * @return New dictionary containing the common keys from the input dictionaries.
 */
fun getCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): Map<String, Any> {

    val commonKeys = mutableMapOf<String, Any>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonKeys[key] = dictionary1[key]!!
        }
    }

    return commonKeys
}