/**
 * Given two dictionaries, find the keys that are common to both dictionaries and return them as a list.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of common keys in both dictionaries.
 */
fun getCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()
    for ((key1, _) in dict1) {
        for ((key2, _) in dict2) {
            if (key1 == key2) {
                commonKeys.add(key1)
            }
        }
    }
    return commonKeys
}
/**
 * Given two dictionaries, find the keys that are common to both dictionaries and return them as a list.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of common keys in both dictionaries.
 */
fun getCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, find the keys that are common to both dictionaries and return them as a list.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list of common keys in both dictionaries.
 */
fun getCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()
    for ((key1, _) in dict1) {
        for ((key2, _) in dict2) {
            if (key1 == key2) {
                commonKeys.add(key1)
            }
        }
    }
    return commonKeys
}