/**
 * This function takes a dictionary and a string pattern as input and returns a list of keys
 * that match the given pattern.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param pattern A string pattern used to search for matching keys in the dictionary.
 * @return A list of keys from the dictionary that match the given pattern.
 */
fun findMatchingKeys(dictionary: Map<String, Any>, pattern: String): List<String> {

    val matchingKeys = mutableListOf<String>()
    for (key in dictionary.keys) {
        if (key.contains(pattern)) {
            matchingKeys.add(key)
        }
    }
    return matchingKeys
}
/**
 * This function takes a dictionary and a string pattern as input and returns a list of keys
 * that match the given pattern.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param pattern A string pattern used to search for matching keys in the dictionary.
 * @return A list of keys from the dictionary that match the given pattern.
 */
fun findMatchingKeys(dictionary: Map<String, Any>, pattern: String): List<String> {
/**
 * This function takes a dictionary and a string pattern as input and returns a list of keys
 * that match the given pattern.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param pattern A string pattern used to search for matching keys in the dictionary.
 * @return A list of keys from the dictionary that match the given pattern.
 */
fun findMatchingKeys(dictionary: Map<String, Any>, pattern: String): List<String> {

    val matchingKeys = mutableListOf<String>()
    for (key in dictionary.keys) {
        if (key.contains(pattern)) {
            matchingKeys.add(key)
        }
    }
    return matchingKeys
}