/**
 * Given two lists, find the common elements and assign them to a new list using OR operator.
 *
 * @param inputList1 the first list of elements
 * @param inputList2 the second list of elements
 * @return A new list containing the common elements from inputList1 and inputList2
 */
fun assignIntersection(inputList1: List<Any>, inputList2: List<Any>): List<Any> {

    // Initialize an empty list
    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first list
    for (element in inputList1) {
        // Check if the element is present in both lists using OR operator
        if (element in inputList2 || element in commonElements) {
            // Assign the common element to the new list using OR operator
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Given two lists, find the common elements and assign them to a new list using OR operator.
 *
 * @param inputList1 the first list of elements
 * @param inputList2 the second list of elements
 * @return A new list containing the common elements from inputList1 and inputList2
 */
fun assignIntersection(inputList1: List<Any>, inputList2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements and assign them to a new list using OR operator.
 *
 * @param inputList1 the first list of elements
 * @param inputList2 the second list of elements
 * @return A new list containing the common elements from inputList1 and inputList2
 */
fun assignIntersection(inputList1: List<Any>, inputList2: List<Any>): List<Any> {

    // Initialize an empty list
    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first list
    for (element in inputList1) {
        // Check if the element is present in both lists using OR operator
        if (element in inputList2 || element in commonElements) {
            // Assign the common element to the new list using OR operator
            commonElements.add(element)
        }
    }

    return commonElements
}