/**
 * This function takes in two dictionaries and returns a list of common keys from both dictionaries.
 * The dictionaries are assumed to have string keys and any type of values.
 *
 * Example:
 * val dictionary1 = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val dictionary2 = mapOf("b" to 4, "c" to 5, "d" to 6)
 * findEqualKeys(dictionary1, dictionary2) -> ['b', 'c']
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys in both dictionaries
 */
fun findEqualKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()
    for (key in dictionary1.keys) {
        if (key in dictionary2) {
            commonKeys.add(key)
        }
    }
    return commonKeys
}
/**
 * This function takes in two dictionaries and returns a list of common keys from both dictionaries.
 * The dictionaries are assumed to have string keys and any type of values.
 *
 * Example:
 * val dictionary1 = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val dictionary2 = mapOf("b" to 4, "c" to 5, "d" to 6)
 * findEqualKeys(dictionary1, dictionary2) -> ['b', 'c']
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys in both dictionaries
 */
fun findEqualKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {
/**
 * This function takes in two dictionaries and returns a list of common keys from both dictionaries.
 * The dictionaries are assumed to have string keys and any type of values.
 *
 * Example:
 * val dictionary1 = mapOf("a" to 1, "b" to 2, "c" to 3)
 * val dictionary2 = mapOf("b" to 4, "c" to 5, "d" to 6)
 * findEqualKeys(dictionary1, dictionary2) -> ['b', 'c']
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys in both dictionaries
 */
fun findEqualKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()
    for (key in dictionary1.keys) {
        if (key in dictionary2) {
            commonKeys.add(key)
        }
    }
    return commonKeys
}