/**
 * This exercise aims to challenge your understanding of indexing and dictionaries in Python.
 *
 * Given two dictionaries, 'dict1" and 'dict2`, you need to write a function that finds the common keys between them.
 *
 * @param dict1 The first dictionary
 * @param dict2 The second dictionary
 * @return A list containing the common keys between 'dict1" and 'dict2`
 */
fun findCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {

    // Initialize an empty list to store the common keys
    val commonKeys = mutableListOf<String>()
    
    // Iterate over the keys in dict1
    for (key in dict1.keys) {
        // Check if the key is present in dict2 as well
        if (dict2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }
    
    // Return the list of common keys
    return commonKeys
}
/**
 * This exercise aims to challenge your understanding of indexing and dictionaries in Python.
 *
 * Given two dictionaries, 'dict1" and 'dict2`, you need to write a function that finds the common keys between them.
 *
 * @param dict1 The first dictionary
 * @param dict2 The second dictionary
 * @return A list containing the common keys between 'dict1" and 'dict2`
 */
fun findCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {
/**
 * This exercise aims to challenge your understanding of indexing and dictionaries in Python.
 *
 * Given two dictionaries, 'dict1" and 'dict2`, you need to write a function that finds the common keys between them.
 *
 * @param dict1 The first dictionary
 * @param dict2 The second dictionary
 * @return A list containing the common keys between 'dict1" and 'dict2`
 */
fun findCommonKeys(dict1: Map<String, Any>, dict2: Map<String, Any>): List<String> {

    // Initialize an empty list to store the common keys
    val commonKeys = mutableListOf<String>()
    
    // Iterate over the keys in dict1
    for (key in dict1.keys) {
        // Check if the key is present in dict2 as well
        if (dict2.containsKey(key)) {
            // Append the common key to the list
            commonKeys.add(key)
        }
    }
    
    // Return the list of common keys
    return commonKeys
}