/**
 * Given an accounting dictionary and a dictionary of new values,
 * update the keys in the accounting dictionary with the corresponding
 * values from the new values dictionary. If a key does not exist in
 * the accounting dictionary, add it with its value from the new values
 * dictionary. Return the updated accounting dictionary.
 *
 * @param accountingDict The dictionary containing accounting data.
 * @param newValues The dictionary containing new values to update
 * the accounting dictionary.
 * @return The updated accounting dictionary.
 */
fun updateDict(accountingDict: MutableMap<String, String>, newValues: Map<String, String>): MutableMap<String, String> {

    for ((key, value) in newValues) {
        if (accountingDict.containsKey(key)) {
            accountingDict[key] = value
        } else {
            accountingDict[key] = value
        }
    }
    return accountingDict
}
/**
 * Given an accounting dictionary and a dictionary of new values,
 * update the keys in the accounting dictionary with the corresponding
 * values from the new values dictionary. If a key does not exist in
 * the accounting dictionary, add it with its value from the new values
 * dictionary. Return the updated accounting dictionary.
 *
 * @param accountingDict The dictionary containing accounting data.
 * @param newValues The dictionary containing new values to update
 * the accounting dictionary.
 * @return The updated accounting dictionary.
 */
fun updateDict(accountingDict: MutableMap<String, String>, newValues: Map<String, String>): MutableMap<String, String> {
/**
 * Given an accounting dictionary and a dictionary of new values,
 * update the keys in the accounting dictionary with the corresponding
 * values from the new values dictionary. If a key does not exist in
 * the accounting dictionary, add it with its value from the new values
 * dictionary. Return the updated accounting dictionary.
 *
 * @param accountingDict The dictionary containing accounting data.
 * @param newValues The dictionary containing new values to update
 * the accounting dictionary.
 * @return The updated accounting dictionary.
 */
fun updateDict(accountingDict: MutableMap<String, String>, newValues: Map<String, String>): MutableMap<String, String> {

    for ((key, value) in newValues) {
        if (accountingDict.containsKey(key)) {
            accountingDict[key] = value
        } else {
            accountingDict[key] = value
        }
    }
    return accountingDict
}