/**
 * This function takes two lists as arguments and returns a new list that contains the intersection of the two original lists.
 */
fun intersection(args1: List<Any>, args2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    // Iterate through each element in the first list
    for (element in args1) {
        // Check if the element is present in both lists
        if (element in args1 && element in args2) {
            // Append the element to the result list
            result.add(element)
        }
    }

    return result
}
/**
 * This function takes two lists as arguments and returns a new list that contains the intersection of the two original lists.
 */
fun intersection(args1: List<Any>, args2: List<Any>): List<Any> {
/**
 * This function takes two lists as arguments and returns a new list that contains the intersection of the two original lists.
 */
fun intersection(args1: List<Any>, args2: List<Any>): List<Any> {

    val result = mutableListOf<Any>()

    // Iterate through each element in the first list
    for (element in args1) {
        // Check if the element is present in both lists
        if (element in args1 && element in args2) {
            // Append the element to the result list
            result.add(element)
        }
    }

    return result
}