/**
 * Given two dictionaries, return a list of keys that are present in both dictionaries.
 *
 * @param dictionary1 A dictionary with positive integer keys.
 * @param dictionary2 A dictionary with positive integer keys.
 * @return A list of positive integer keys that are present in both dictionaries.
 */
fun getCommonKeys(dictionary1: Map<Int, Any>, dictionary2: Map<Int, Any>): List<Int> {

    val commonKeys = mutableListOf<Int>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}
/**
 * Given two dictionaries, return a list of keys that are present in both dictionaries.
 *
 * @param dictionary1 A dictionary with positive integer keys.
 * @param dictionary2 A dictionary with positive integer keys.
 * @return A list of positive integer keys that are present in both dictionaries.
 */
fun getCommonKeys(dictionary1: Map<Int, Any>, dictionary2: Map<Int, Any>): List<Int> {
/**
 * Given two dictionaries, return a list of keys that are present in both dictionaries.
 *
 * @param dictionary1 A dictionary with positive integer keys.
 * @param dictionary2 A dictionary with positive integer keys.
 * @return A list of positive integer keys that are present in both dictionaries.
 */
fun getCommonKeys(dictionary1: Map<Int, Any>, dictionary2: Map<Int, Any>): List<Int> {

    val commonKeys = mutableListOf<Int>()

    for (key in dictionary1.keys) {
        if (dictionary2.containsKey(key)) {
            commonKeys.add(key)
        }
    }

    return commonKeys
}