/**
 * This function takes two dictionaries as input and returns a new dictionary containing the common key-value pairs
 * found in both dictionaries.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return New dictionary containing the common key-value pairs found in both dictionaries
 */
fun findCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Map<String, Int> {

    val commonDict = mutableMapOf<String, Int>()
    for ((key, value) in dict1) {
        if (dict2.containsKey(key) && dict2[key] == value) {
            commonDict[key] = value
        }
    }
    return commonDict
}
/**
 * This function takes two dictionaries as input and returns a new dictionary containing the common key-value pairs
 * found in both dictionaries.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return New dictionary containing the common key-value pairs found in both dictionaries
 */
fun findCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Map<String, Int> {
/**
 * This function takes two dictionaries as input and returns a new dictionary containing the common key-value pairs
 * found in both dictionaries.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return New dictionary containing the common key-value pairs found in both dictionaries
 */
fun findCommonElements(dict1: Map<String, Int>, dict2: Map<String, Int>): Map<String, Int> {

    val commonDict = mutableMapOf<String, Int>()
    for ((key, value) in dict1) {
        if (dict2.containsKey(key) && dict2[key] == value) {
            commonDict[key] = value
        }
    }
    return commonDict
}