/**
 * Given a dictionary and a set of keys, remove all elements from the dictionary whose keys are present in the set.
 *
 * @param dictionary The input dictionary.
 * @param keySet The set of keys to be removed from the dictionary.
 * @return The modified dictionary with removed elements.
 */
fun removeElements(dictionary: MutableMap<String, Any>, keySet: Set<String>): MutableMap<String, Any> {

    // Get the list of keys to be removed
    val keysToRemove = dictionary.keys.filter { it in keySet }

    // Loop through the keys and remove them from the dictionary
    keysToRemove.forEach { key -> dictionary.remove(key) }

    return dictionary
}
/**
 * Given a dictionary and a set of keys, remove all elements from the dictionary whose keys are present in the set.
 *
 * @param dictionary The input dictionary.
 * @param keySet The set of keys to be removed from the dictionary.
 * @return The modified dictionary with removed elements.
 */
fun removeElements(dictionary: MutableMap<String, Any>, keySet: Set<String>): MutableMap<String, Any> {
/**
 * Given a dictionary and a set of keys, remove all elements from the dictionary whose keys are present in the set.
 *
 * @param dictionary The input dictionary.
 * @param keySet The set of keys to be removed from the dictionary.
 * @return The modified dictionary with removed elements.
 */
fun removeElements(dictionary: MutableMap<String, Any>, keySet: Set<String>): MutableMap<String, Any> {

    // Get the list of keys to be removed
    val keysToRemove = dictionary.keys.filter { it in keySet }

    // Loop through the keys and remove them from the dictionary
    keysToRemove.forEach { key -> dictionary.remove(key) }

    return dictionary
}