/**
 * Given two dictionaries, find the common keys between them.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return A list of common keys between dictionary1 and dictionary2.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    // Initialize an empty list to store the common keys
    val commonKeys = mutableListOf<String>()

    // Check each key in dictionary1
    for (key in dictionary1.keys) {
        // Check if the key exists in dictionary2
        if (dictionary2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }

    return commonKeys
}
/**
 * Given two dictionaries, find the common keys between them.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return A list of common keys between dictionary1 and dictionary2.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, find the common keys between them.
 *
 * @param dictionary1 First dictionary.
 * @param dictionary2 Second dictionary.
 * @return A list of common keys between dictionary1 and dictionary2.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    // Initialize an empty list to store the common keys
    val commonKeys = mutableListOf<String>()

    // Check each key in dictionary1
    for (key in dictionary1.keys) {
        // Check if the key exists in dictionary2
        if (dictionary2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }

    return commonKeys
}