/**
 * This function takes a list of people and a list of criminals and removes the criminals from the people list.
 *
 * @param peopleList a list of people
 * @param criminalList a list of criminals
 * @return updatedPeopleList the people list with criminals removed
 */
fun removeCriminals(peopleList: MutableList<String>, criminalList: List<String>): MutableList<String> {

    val updatedPeopleList = peopleList.toMutableList() // create a copy of the people list to avoid modifying the original list

    for (criminal in criminalList) {
        if (criminal in updatedPeopleList) {
            updatedPeopleList.remove(criminal) // remove the criminal from the updated people list
        }
    }

    return updatedPeopleList
}

// Code to test the removeCriminals function
/**
 * This function takes a list of people and a list of criminals and removes the criminals from the people list.
 *
 * @param peopleList a list of people
 * @param criminalList a list of criminals
 * @return updatedPeopleList the people list with criminals removed
 */
fun removeCriminals(peopleList: MutableList<String>, criminalList: List<String>): MutableList<String> {
/**
 * This function takes a list of people and a list of criminals and removes the criminals from the people list.
 *
 * @param peopleList a list of people
 * @param criminalList a list of criminals
 * @return updatedPeopleList the people list with criminals removed
 */
fun removeCriminals(peopleList: MutableList<String>, criminalList: List<String>): MutableList<String> {

    val updatedPeopleList = peopleList.toMutableList() // create a copy of the people list to avoid modifying the original list

    for (criminal in criminalList) {
        if (criminal in updatedPeopleList) {
            updatedPeopleList.remove(criminal) // remove the criminal from the updated people list
        }
    }

    return updatedPeopleList
}

// Code to test the removeCriminals function