/**
 * Given a list of law terms and a list of items to delete,
 * remove the specified items from the law terms list.
 *
 * @param lawTerms List of law terms
 * @param toDelete List of items to delete
 * @return Updated law terms list without the deleted items
 */
fun deleteItems(lawTerms: MutableList<String>, toDelete: List<String>): MutableList<String> {

    // Iterate through each item to delete
    for (term in toDelete) {
        // Remove the item from the law terms list
        if (term in lawTerms) {
            lawTerms.remove(term)
        }
    }
    return lawTerms
}

// Lawyer terms list
val lawyerTerms = mutableListOf("affidavit", "brief", "consent")
/**
 * Given a list of law terms and a list of items to delete,
 * remove the specified items from the law terms list.
 *
 * @param lawTerms List of law terms
 * @param toDelete List of items to delete
 * @return Updated law terms list without the deleted items
 */
fun deleteItems(lawTerms: MutableList<String>, toDelete: List<String>): MutableList<String> {
/**
 * Given a list of law terms and a list of items to delete,
 * remove the specified items from the law terms list.
 *
 * @param lawTerms List of law terms
 * @param toDelete List of items to delete
 * @return Updated law terms list without the deleted items
 */
fun deleteItems(lawTerms: MutableList<String>, toDelete: List<String>): MutableList<String> {

    // Iterate through each item to delete
    for (term in toDelete) {
        // Remove the item from the law terms list
        if (term in lawTerms) {
            lawTerms.remove(term)
        }
    }
    return lawTerms
}

// Lawyer terms list
val lawyerTerms = mutableListOf("affidavit", "brief", "consent")