/**
 * This function takes two dictionaries as input and returns a list of common keys where the values in
 * both dictionaries are greater than or equal to 10.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common keys with values greater than or equal to 10 in both dictionaries
 *
 * Example:
 * val dict1 = mapOf('A' to 5, 'B' to 10, 'C' to 15)
 * val dict2 = mapOf('B' to 20, 'C' to 10, 'D' to 5)
 * findCommonKeyGreaterOrEqual(dict1, dict2) // Output: ['B', 'C']
 */
fun findCommonKeyGreaterOrEqual(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {

    val commonKeys = mutableListOf<String>()

    // Iterate over the keys in dict1
    for (key in dict1.keys) {
        // Check if the key exists in both dictionaries and if the values are greater than or equal to 10
        if (dict2.containsKey(key) && dict1[key]!! >= 10 && dict2[key]!! >= 10) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}
/**
 * This function takes two dictionaries as input and returns a list of common keys where the values in
 * both dictionaries are greater than or equal to 10.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common keys with values greater than or equal to 10 in both dictionaries
 *
 * Example:
 * val dict1 = mapOf('A' to 5, 'B' to 10, 'C' to 15)
 * val dict2 = mapOf('B' to 20, 'C' to 10, 'D' to 5)
 * findCommonKeyGreaterOrEqual(dict1, dict2) // Output: ['B', 'C']
 */
fun findCommonKeyGreaterOrEqual(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {
/**
 * This function takes two dictionaries as input and returns a list of common keys where the values in
 * both dictionaries are greater than or equal to 10.
 *
 * @param dict1 First dictionary
 * @param dict2 Second dictionary
 * @return List of common keys with values greater than or equal to 10 in both dictionaries
 *
 * Example:
 * val dict1 = mapOf('A' to 5, 'B' to 10, 'C' to 15)
 * val dict2 = mapOf('B' to 20, 'C' to 10, 'D' to 5)
 * findCommonKeyGreaterOrEqual(dict1, dict2) // Output: ['B', 'C']
 */
fun findCommonKeyGreaterOrEqual(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {

    val commonKeys = mutableListOf<String>()

    // Iterate over the keys in dict1
    for (key in dict1.keys) {
        // Check if the key exists in both dictionaries and if the values are greater than or equal to 10
        if (dict2.containsKey(key) && dict1[key]!! >= 10 && dict2[key]!! >= 10) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}