/**
 * Given a dictionary containing information about journalists and a list of their names,
 * modify the dictionary by increasing the article count for each journalist in the list.
 *
 * @param journalistInfo A dictionary with the journalist names as keys and their article count as values.
 * @param names A list of journalist names to update the article count for.
 * @param articleCount The number of articles to increase for each journalist.
 * @return The modified journalistInfo dictionary.
 */
fun modifyJournalistInfo(journalistInfo: MutableMap<String, Int>, names: List<String>, articleCount: Int): MutableMap<String, Int> {

    for (name in names) {
        if (journalistInfo.containsKey(name)) {
            journalistInfo[name] = journalistInfo[name]!! + articleCount
        }
    }
    return journalistInfo
}
/**
 * Given a dictionary containing information about journalists and a list of their names,
 * modify the dictionary by increasing the article count for each journalist in the list.
 *
 * @param journalistInfo A dictionary with the journalist names as keys and their article count as values.
 * @param names A list of journalist names to update the article count for.
 * @param articleCount The number of articles to increase for each journalist.
 * @return The modified journalistInfo dictionary.
 */
fun modifyJournalistInfo(journalistInfo: MutableMap<String, Int>, names: List<String>, articleCount: Int): MutableMap<String, Int> {
/**
 * Given a dictionary containing information about journalists and a list of their names,
 * modify the dictionary by increasing the article count for each journalist in the list.
 *
 * @param journalistInfo A dictionary with the journalist names as keys and their article count as values.
 * @param names A list of journalist names to update the article count for.
 * @param articleCount The number of articles to increase for each journalist.
 * @return The modified journalistInfo dictionary.
 */
fun modifyJournalistInfo(journalistInfo: MutableMap<String, Int>, names: List<String>, articleCount: Int): MutableMap<String, Int> {

    for (name in names) {
        if (journalistInfo.containsKey(name)) {
            journalistInfo[name] = journalistInfo[name]!! + articleCount
        }
    }
    return journalistInfo
}