/**
 * This function takes two lists as input and removes the common elements from the first list.
 * The 'filterNot' function is used to filter out elements that are present in the second list.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The updated first list with common elements removed.
 */
fun removeCommonElements(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    return list1.filterNot { it in list2 }
}
/**
 * This function takes two lists as input and removes the common elements from the first list.
 * The 'filterNot' function is used to filter out elements that are present in the second list.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The updated first list with common elements removed.
 */
fun removeCommonElements(list1: MutableList<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists as input and removes the common elements from the first list.
 * The 'filterNot' function is used to filter out elements that are present in the second list.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return The updated first list with common elements removed.
 */
fun removeCommonElements(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    return list1.filterNot { it in list2 }
}