/**
 * Given two dictionaries, find the common keys using the intersection of "in Operator" and "Looping through a dictionary".
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list containing the common keys found in both dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()

    for (key1 in dictionary1.keys) {
        for (key2 in dictionary2.keys) {
            if (key1 == key2) {
                commonKeys.add(key1)
                break
            }
        }
    }

    return commonKeys
}
/**
 * Given two dictionaries, find the common keys using the intersection of "in Operator" and "Looping through a dictionary".
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list containing the common keys found in both dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {
/**
 * Given two dictionaries, find the common keys using the intersection of "in Operator" and "Looping through a dictionary".
 *
 * @param dictionary1 The first dictionary.
 * @param dictionary2 The second dictionary.
 * @return A list containing the common keys found in both dictionaries.
 */
fun findCommonKeys(dictionary1: Map<String, Any>, dictionary2: Map<String, Any>): List<String> {

    val commonKeys = mutableListOf<String>()

    for (key1 in dictionary1.keys) {
        for (key2 in dictionary2.keys) {
            if (key1 == key2) {
                commonKeys.add(key1)
                break
            }
        }
    }

    return commonKeys
}