/**
 * Given two lists, remove any duplicate values from list1 that also exist in list2.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The modified list1 with duplicate values removed.
 */
fun removeDuplicates(list1: MutableList<Any>, list2: List<Any>): List<Any> {

    val list1Copy = list1.toList()
    for (value in list1Copy) {
        if (value in list2) {
            list1.remove(value)
        }
    }
    return list1
}
/**
 * Given two lists, remove any duplicate values from list1 that also exist in list2.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The modified list1 with duplicate values removed.
 */
fun removeDuplicates(list1: MutableList<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, remove any duplicate values from list1 that also exist in list2.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The modified list1 with duplicate values removed.
 */
fun removeDuplicates(list1: MutableList<Any>, list2: List<Any>): List<Any> {

    val list1Copy = list1.toList()
    for (value in list1Copy) {
        if (value in list2) {
            list1.remove(value)
        }
    }
    return list1
}