/**
 * This function takes two dictionaries as input and returns a list of common elements in their values.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common elements in the values of both dictionaries
 */
fun findCommonElements(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Access each key-value pair in the first dictionary
    for ((key1, value1) in dict1) {
        // Access each key-value pair in the second dictionary
        for ((_, value2) in dict2) {
            // Check if the values are equal
            if (value1 == value2) {
                // Add the common element to the list
                commonElements.add(value1)
            }
        }
    }

    return commonElements
}
/**
 * This function takes two dictionaries as input and returns a list of common elements in their values.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common elements in the values of both dictionaries
 */
fun findCommonElements(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {
/**
 * This function takes two dictionaries as input and returns a list of common elements in their values.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common elements in the values of both dictionaries
 */
fun findCommonElements(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Access each key-value pair in the first dictionary
    for ((key1, value1) in dict1) {
        // Access each key-value pair in the second dictionary
        for ((_, value2) in dict2) {
            // Check if the values are equal
            if (value1 == value2) {
                // Add the common element to the list
                commonElements.add(value1)
            }
        }
    }

    return commonElements
}