/**
 * Write a function that takes two dictionaries as input and returns a list of common keys.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys between the two dictionaries
 *
 * Example:
 * findCommonKeys(mapOf('a' to 1, 'b' to 2, 'c' to 3), mapOf('b' to 4, 'c' to 5, 'd' to 6)) -> ['b', 'c']
 */
fun findCommonKeys(dictionary1: Map<String, Int>, dictionary2: Map<String, Int>): List<String> {

    val commonKeys = mutableListOf<String>()
    for (key in dictionary1.keys) {
        if (key in dictionary2.keys) {
            commonKeys.add(key)
        }
    }
    return commonKeys
}
/**
 * Write a function that takes two dictionaries as input and returns a list of common keys.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys between the two dictionaries
 *
 * Example:
 * findCommonKeys(mapOf('a' to 1, 'b' to 2, 'c' to 3), mapOf('b' to 4, 'c' to 5, 'd' to 6)) -> ['b', 'c']
 */
fun findCommonKeys(dictionary1: Map<String, Int>, dictionary2: Map<String, Int>): List<String> {
/**
 * Write a function that takes two dictionaries as input and returns a list of common keys.
 *
 * @param dictionary1 First dictionary
 * @param dictionary2 Second dictionary
 * @return List of common keys between the two dictionaries
 *
 * Example:
 * findCommonKeys(mapOf('a' to 1, 'b' to 2, 'c' to 3), mapOf('b' to 4, 'c' to 5, 'd' to 6)) -> ['b', 'c']
 */
fun findCommonKeys(dictionary1: Map<String, Int>, dictionary2: Map<String, Int>): List<String> {

    val commonKeys = mutableListOf<String>()
    for (key in dictionary1.keys) {
        if (key in dictionary2.keys) {
            commonKeys.add(key)
        }
    }
    return commonKeys
}