/**
 * Given two dictionaries, find the keys that are present in both dictionaries.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return List of common keys between the two dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()

    // Iterate over the keys in the first dictionary
    for (key in dictionary1.keys) {
        // Check if the key is present in both dictionaries
        if (dictionary2.containsKey(key)) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}
/**
 * Given two dictionaries, find the keys that are present in both dictionaries.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return List of common keys between the two dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, find the keys that are present in both dictionaries.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return List of common keys between the two dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()

    // Iterate over the keys in the first dictionary
    for (key in dictionary1.keys) {
        // Check if the key is present in both dictionaries
        if (dictionary2.containsKey(key)) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}