/**
 * This function removes unwanted elements from a list.
 *
 * @param items A list of items from which unwanted elements need to be removed.
 * @param unwanted A list of elements to be removed from the original list.
 * @return Modified list with unwanted elements removed.
 */
fun removeUnwantedElements(items: MutableList<Int>, unwanted: List<Int>): List<Int> {

    val filteredList = items.filter { item -> item !in unwanted }
    return filteredList
}

// Example usage
/**
 * This function removes unwanted elements from a list.
 *
 * @param items A list of items from which unwanted elements need to be removed.
 * @param unwanted A list of elements to be removed from the original list.
 * @return Modified list with unwanted elements removed.
 */
fun removeUnwantedElements(items: MutableList<Int>, unwanted: List<Int>): List<Int> {
/**
 * This function removes unwanted elements from a list.
 *
 * @param items A list of items from which unwanted elements need to be removed.
 * @param unwanted A list of elements to be removed from the original list.
 * @return Modified list with unwanted elements removed.
 */
fun removeUnwantedElements(items: MutableList<Int>, unwanted: List<Int>): List<Int> {

    val filteredList = items.filter { item -> item !in unwanted }
    return filteredList
}

// Example usage