/**
 * Given two lists, remove the elements from list 1 that are also present in list 2
 */
fun removeDuplicates(lst1: MutableList<Any>, lst2: List<Any>): MutableList<Any> {

    // Convert the lists to sets for efficient intersection operation
    val set1 = lst1.toSet()
    val set2 = lst2.toSet()

    // Find the common elements between the two sets
    val intersection = set1.intersect(set2)

    // Remove the common elements from list 1
    intersection.forEach { element ->
        while (element in lst1) {
            lst1.remove(element)
        }
    }

    return lst1
}
/**
 * Given two lists, remove the elements from list 1 that are also present in list 2
 */
fun removeDuplicates(lst1: MutableList<Any>, lst2: List<Any>): MutableList<Any> {
/**
 * Given two lists, remove the elements from list 1 that are also present in list 2
 */
fun removeDuplicates(lst1: MutableList<Any>, lst2: List<Any>): MutableList<Any> {

    // Convert the lists to sets for efficient intersection operation
    val set1 = lst1.toSet()
    val set2 = lst2.toSet()

    // Find the common elements between the two sets
    val intersection = set1.intersect(set2)

    // Remove the common elements from list 1
    intersection.forEach { element ->
        while (element in lst1) {
            lst1.remove(element)
        }
    }

    return lst1
}