/**
 * Given two dictionaries, find and return a list of common keys present in both dictionaries.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common keys present in both dictionaries.
 */
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>()

    // Iterate through the keys in the first dictionary
    for (key1 in dictionary1.keys) {
        // Check if the key exists in the second dictionary
        if (dictionary2.containsKey(key1)) {
            // Append the key to the list of common keys
            commonKeys.add(key1)
        }
    }

    // Return the list of common keys
    return commonKeys
}
/**
 * Given two dictionaries, find and return a list of common keys present in both dictionaries.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common keys present 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 present in both dictionaries.
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list of common keys present in both dictionaries.
 */
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>()

    // Iterate through the keys in the first dictionary
    for (key1 in dictionary1.keys) {
        // Check if the key exists in the second dictionary
        if (dictionary2.containsKey(key1)) {
            // Append the key to the list of common keys
            commonKeys.add(key1)
        }
    }

    // Return the list of common keys
    return commonKeys
}