/**
 * This function calculates the common elements between two dictionaries using nested dictionaries and an else statement.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list containing the common elements between the two dictionaries.
 */
fun calculateCommonElements(dict1: Map<String, Map<String, Any>>, dict2: Map<String, Map<String, Any>>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for ((key1, value1) in dict1) {
        if (key1 in dict2) {
            for ((key2, value2) in value1) {
                if (key2 in dict2[key1]!!) {
                    commonElements.add(value1[key2]!!)
                } else {
                    // Add your code here
                }
            }
        } else {
            // Add your code here
        }
    }

    return commonElements
}
/**
 * This function calculates the common elements between two dictionaries using nested dictionaries and an else statement.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list containing the common elements between the two dictionaries.
 */
fun calculateCommonElements(dict1: Map<String, Map<String, Any>>, dict2: Map<String, Map<String, Any>>): List<Any> {
/**
 * This function calculates the common elements between two dictionaries using nested dictionaries and an else statement.
 *
 * @param dict1 The first dictionary.
 * @param dict2 The second dictionary.
 * @return A list containing the common elements between the two dictionaries.
 */
fun calculateCommonElements(dict1: Map<String, Map<String, Any>>, dict2: Map<String, Map<String, Any>>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for ((key1, value1) in dict1) {
        if (key1 in dict2) {
            for ((key2, value2) in value1) {
                if (key2 in dict2[key1]!!) {
                    commonElements.add(value1[key2]!!)
                } else {
                    // Add your code here
                }
            }
        } else {
            // Add your code here
        }
    }

    return commonElements
}