/**
 * Given two dictionaries, database1 and database2, this function returns a list of common keys.
 */
fun findCommonKeys(database1: Map<String, Any>, database2: Map<String, Any>): List<String> {

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

    // Iterate over the keys in database1
    for (key1 in database1.keys) {
        // Check if the key also exists in database2
        if (database2.containsKey(key1)) {
            // Add the common key to the list
            commonKeys.add(key1)
        }
    }

    return commonKeys
}
/**
 * Given two dictionaries, database1 and database2, this function returns a list of common keys.
 */
fun findCommonKeys(database1: Map<String, Any>, database2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, database1 and database2, this function returns a list of common keys.
 */
fun findCommonKeys(database1: Map<String, Any>, database2: Map<String, Any>): List<String> {

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

    // Iterate over the keys in database1
    for (key1 in database1.keys) {
        // Check if the key also exists in database2
        if (database2.containsKey(key1)) {
            // Add the common key to the list
            commonKeys.add(key1)
        }
    }

    return commonKeys
}