/**
 * This function takes a list of accountants and deletes any accountants who have not been assigned any clients.
 * It returns the modified list.
 *
 * @param accountantList A list of accountants with their corresponding client counts.
 * @return The modified list of accountants after deleting accountants with no clients.
 */
fun deleteElements(accountantList: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {

    val iterator = accountantList.iterator()
    while (iterator.hasNext()) {
        if (iterator.next().second == 0) {
            iterator.remove()
        }
    }
    return accountantList
}
/**
 * This function takes a list of accountants and deletes any accountants who have not been assigned any clients.
 * It returns the modified list.
 *
 * @param accountantList A list of accountants with their corresponding client counts.
 * @return The modified list of accountants after deleting accountants with no clients.
 */
fun deleteElements(accountantList: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {
/**
 * This function takes a list of accountants and deletes any accountants who have not been assigned any clients.
 * It returns the modified list.
 *
 * @param accountantList A list of accountants with their corresponding client counts.
 * @return The modified list of accountants after deleting accountants with no clients.
 */
fun deleteElements(accountantList: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {

    val iterator = accountantList.iterator()
    while (iterator.hasNext()) {
        if (iterator.next().second == 0) {
            iterator.remove()
        }
    }
    return accountantList
}