/**
 * Given two dictionaries, find and return a list of common keys.
 *
 * @param dictionary1 First dictionary to be compared
 * @param dictionary2 Second dictionary to be compared
 * @return A list of common keys in both dictionaries
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()

    // Iterate through the keys and values of dictionary1
    for ((key1, _) in dictionary1) {
        // Iterate through the keys and values of dictionary2
        for ((key2, _) in dictionary2) {
            // Check if the keys are equal
            if (key1 == key2) {
                // Add the common key to the commonKeys list
                commonKeys.add(key1)
            }
        }
    }

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

    val commonKeys = mutableListOf<String>()

    // Iterate through the keys and values of dictionary1
    for ((key1, _) in dictionary1) {
        // Iterate through the keys and values of dictionary2
        for ((key2, _) in dictionary2) {
            // Check if the keys are equal
            if (key1 == key2) {
                // Add the common key to the commonKeys list
                commonKeys.add(key1)
            }
        }
    }

    return commonKeys
}