/**
 * This function takes a list of accountants, removes a specific accountant based on an ID, and replaces the salary
 * of all remaining accountants with a given value.
 *
 * @param accountants A list of dictionaries representing different accountants, where each dictionary has keys for 'id' and 'salary'
 * @param removeId The ID of the accountant to be removed from the list
 * @param replaceSalary The value to be used for replacing the salary of the remaining accountants
 * @return The modified list of accountants with the removed element and updated salaries
 */
fun modifyListElements(accountants: List<Map<String, Any>>, removeId: Int, replaceSalary: Int): List<Map<String, Any>> {

    return accountants.filter { it["id"] != removeId }
}
/**
 * This function takes a list of accountants, removes a specific accountant based on an ID, and replaces the salary
 * of all remaining accountants with a given value.
 *
 * @param accountants A list of dictionaries representing different accountants, where each dictionary has keys for 'id' and 'salary'
 * @param removeId The ID of the accountant to be removed from the list
 * @param replaceSalary The value to be used for replacing the salary of the remaining accountants
 * @return The modified list of accountants with the removed element and updated salaries
 */
fun modifyListElements(accountants: List<Map<String, Any>>, removeId: Int, replaceSalary: Int): List<Map<String, Any>> {
/**
 * This function takes a list of accountants, removes a specific accountant based on an ID, and replaces the salary
 * of all remaining accountants with a given value.
 *
 * @param accountants A list of dictionaries representing different accountants, where each dictionary has keys for 'id' and 'salary'
 * @param removeId The ID of the accountant to be removed from the list
 * @param replaceSalary The value to be used for replacing the salary of the remaining accountants
 * @return The modified list of accountants with the removed element and updated salaries
 */
fun modifyListElements(accountants: List<Map<String, Any>>, removeId: Int, replaceSalary: Int): List<Map<String, Any>> {

    return accountants.filter { it["id"] != removeId }
}