/**
 * Given two dictionaries, find and return a list of common elements between the dictionaries.
 *
 * This function takes in two dictionaries as arguments and checks if there are any elements that are common
 * between the dictionaries. It returns a list of the common elements found.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common elements between the dictionaries.
 */
fun findCommonElements(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonElements = mutableListOf<String>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonElements.add(key)
        }
    }

    return commonElements
}
/**
 * Given two dictionaries, find and return a list of common elements between the dictionaries.
 *
 * This function takes in two dictionaries as arguments and checks if there are any elements that are common
 * between the dictionaries. It returns a list of the common elements found.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common elements between the dictionaries.
 */
fun findCommonElements(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, find and return a list of common elements between the dictionaries.
 *
 * This function takes in two dictionaries as arguments and checks if there are any elements that are common
 * between the dictionaries. It returns a list of the common elements found.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common elements between the dictionaries.
 */
fun findCommonElements(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonElements = mutableListOf<String>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonElements.add(key)
        }
    }

    return commonElements
}