/**
 * Given two dictionaries, find the common values between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return A list of common values.
 */
fun getCommonValues(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

    // Initialize an empty list to store common values
    val commonValues = mutableListOf<Any>()
    
    // Iterate through the values in the first dictionary
    for (value1 in dict1.values) {
        // Iterate through the values in the second dictionary
        for (value2 in dict2.values) {
            // Check if the values are equal
            if (value1 == value2) {
                // Check if the value is already in the commonValues list
                if (value1 !in commonValues) {
                    // Append the common value to the list
                    commonValues.add(value1)
                }
            }
        }
    }
    
    // Return the list of common values
    return commonValues
}
/**
 * Given two dictionaries, find the common values between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return A list of common values.
 */
fun getCommonValues(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {
/**
 * Given two dictionaries, find the common values between them.
 *
 * @param dict1 First dictionary.
 * @param dict2 Second dictionary.
 * @return A list of common values.
 */
fun getCommonValues(dict1: Map<Any, Any>, dict2: Map<Any, Any>): List<Any> {

    // Initialize an empty list to store common values
    val commonValues = mutableListOf<Any>()
    
    // Iterate through the values in the first dictionary
    for (value1 in dict1.values) {
        // Iterate through the values in the second dictionary
        for (value2 in dict2.values) {
            // Check if the values are equal
            if (value1 == value2) {
                // Check if the value is already in the commonValues list
                if (value1 !in commonValues) {
                    // Append the common value to the list
                    commonValues.add(value1)
                }
            }
        }
    }
    
    // Return the list of common values
    return commonValues
}