/**
 * Write a function that takes two dictionaries as input and returns a list of common keys
 * between the two dictionaries using the AND operator and dictionary methods.
 *
 * @param dict1 A dictionary containing key-value pairs.
 * @param dict2 A dictionary containing key-value pairs.
 * @return A list of common keys between dict1 and dict2.
 *
 * Example:
 * val dict1 = mapOf("apple" to 3, "banana" to 2, "orange" to 5)
 * val dict2 = mapOf("banana" to 1, "kiwi" to 4, "orange" to 6)
 * val commonKeys = findCommonKeys(dict1, dict2)
 * println(commonKeys)
 * Output: ['banana', 'orange']
 */
fun findCommonKeys(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {

    // Find the intersection of keys between dict1 and dict2
    val commonKeys = dict1.keys.intersect(dict2.keys).toList()
    return commonKeys
}
/**
 * Write a function that takes two dictionaries as input and returns a list of common keys
 * between the two dictionaries using the AND operator and dictionary methods.
 *
 * @param dict1 A dictionary containing key-value pairs.
 * @param dict2 A dictionary containing key-value pairs.
 * @return A list of common keys between dict1 and dict2.
 *
 * Example:
 * val dict1 = mapOf("apple" to 3, "banana" to 2, "orange" to 5)
 * val dict2 = mapOf("banana" to 1, "kiwi" to 4, "orange" to 6)
 * val commonKeys = findCommonKeys(dict1, dict2)
 * println(commonKeys)
 * Output: ['banana', 'orange']
 */
fun findCommonKeys(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {
/**
 * Write a function that takes two dictionaries as input and returns a list of common keys
 * between the two dictionaries using the AND operator and dictionary methods.
 *
 * @param dict1 A dictionary containing key-value pairs.
 * @param dict2 A dictionary containing key-value pairs.
 * @return A list of common keys between dict1 and dict2.
 *
 * Example:
 * val dict1 = mapOf("apple" to 3, "banana" to 2, "orange" to 5)
 * val dict2 = mapOf("banana" to 1, "kiwi" to 4, "orange" to 6)
 * val commonKeys = findCommonKeys(dict1, dict2)
 * println(commonKeys)
 * Output: ['banana', 'orange']
 */
fun findCommonKeys(dict1: Map<String, Int>, dict2: Map<String, Int>): List<String> {

    // Find the intersection of keys between dict1 and dict2
    val commonKeys = dict1.keys.intersect(dict2.keys).toList()
    return commonKeys
}