/**
 * Given two lists,- remove all elements from list1 that also appear in list2.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A new list containing the remaining elements from list1 after removal
 */
fun removeElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Create a new empty list to store the remaining elements
    val remainingElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is NOT in list2
        if (element !in list2) {
            // If the element is not present in list2, append it to remainingElements list
            remainingElements.add(element)
        }
    }

    return remainingElements
}
/**
 * Given two lists,- remove all elements from list1 that also appear in list2.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A new list containing the remaining elements from list1 after removal
 */
fun removeElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists,- remove all elements from list1 that also appear in list2.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A new list containing the remaining elements from list1 after removal
 */
fun removeElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Create a new empty list to store the remaining elements
    val remainingElements = mutableListOf<Any>()

    // Iterate over each element in list1
    for (element in list1) {
        // Check if the element is NOT in list2
        if (element !in list2) {
            // If the element is not present in list2, append it to remainingElements list
            remainingElements.add(element)
        }
    }

    return remainingElements
}