/**
 * This exercise requires you to find the common keys in two dictionaries using identity comparison.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of keys that exist in both dictionaries.
 */
fun findCommonKeys(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

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

    // Loop through the keys in the first dictionary
    for (key in dict1.keys) {
        // Perform identity comparison to check if the key exists in the second dictionary
        if (dict2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }

    return commonKeys
}
/**
 * This exercise requires you to find the common keys in two dictionaries using identity comparison.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of keys that exist in both dictionaries.
 */
fun findCommonKeys(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {
/**
 * This exercise requires you to find the common keys in two dictionaries using identity comparison.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of keys that exist in both dictionaries.
 */
fun findCommonKeys(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

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

    // Loop through the keys in the first dictionary
    for (key in dict1.keys) {
        // Perform identity comparison to check if the key exists in the second dictionary
        if (dict2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }

    return commonKeys
}