/**
 * This function adds a police officer to a department map, modifying the values in the map.
 *
 * @param department A map representing the police department.
 * @param officerName The name of the officer to add.
 * @param officerRank The rank of the officer to add.
 * @return The updated department map with the added officer.
 */
fun addOfficerToDepartment(department: MutableMap<String, String>, officerName: String, officerRank: String): MutableMap<String, String> {

    department[officerName] = department.getOrDefault(officerName, "") ?: officerRank
    return department
}
/**
 * This function adds a police officer to a department map, modifying the values in the map.
 *
 * @param department A map representing the police department.
 * @param officerName The name of the officer to add.
 * @param officerRank The rank of the officer to add.
 * @return The updated department map with the added officer.
 */
fun addOfficerToDepartment(department: MutableMap<String, String>, officerName: String, officerRank: String): MutableMap<String, String> {
/**
 * This function adds a police officer to a department map, modifying the values in the map.
 *
 * @param department A map representing the police department.
 * @param officerName The name of the officer to add.
 * @param officerRank The rank of the officer to add.
 * @return The updated department map with the added officer.
 */
fun addOfficerToDepartment(department: MutableMap<String, String>, officerName: String, officerRank: String): MutableMap<String, String> {

    department[officerName] = department.getOrDefault(officerName, "") ?: officerRank
    return department
}