/**
 * This function takes in two lists and modifies the second list by removing elements that do not exist in the first list.
 * It uses indexing to access elements and the division assignment operator to perform the necessary operation.
 *
 * @param lst1 A list containing elements.
 * @param lst2 A list to be modified.
 */
fun intersectionAssignmentOperator(lst1: List<Any>, lst2: MutableList<Any>) {

    var i = lst2.size - 1

    while (i >= 0) {
        if (lst2[i] !in lst1) {
            // Use the division assignment operator to remove the element
            lst2.removeAt(i)
        }
        i--
    }
}
/**
 * This function takes in two lists and modifies the second list by removing elements that do not exist in the first list.
 * It uses indexing to access elements and the division assignment operator to perform the necessary operation.
 *
 * @param lst1 A list containing elements.
 * @param lst2 A list to be modified.
 */
fun intersectionAssignmentOperator(lst1: List<Any>, lst2: MutableList<Any>) {
/**
 * This function takes in two lists and modifies the second list by removing elements that do not exist in the first list.
 * It uses indexing to access elements and the division assignment operator to perform the necessary operation.
 *
 * @param lst1 A list containing elements.
 * @param lst2 A list to be modified.
 */
fun intersectionAssignmentOperator(lst1: List<Any>, lst2: MutableList<Any>) {

    var i = lst2.size - 1

    while (i >= 0) {
        if (lst2[i] !in lst1) {
            // Use the division assignment operator to remove the element
            lst2.removeAt(i)
        }
        i--
    }
}