/**
 * Given two arrays, create a set containing the elements that are present in both arrays.
 *
 * @param arr1 The first array
 * @param arr2 The second array
 * @return A set containing the common elements of both arrays
 */
fun createSetFromIntersection(arr1: List<Any>, arr2: List<Any>): Set<Any> {

    // Find the intersection of the two arrays using set operations
    val intersection = arr1.toSet() intersect arr2.toSet()
    
    return intersection
}
/**
 * Given two arrays, create a set containing the elements that are present in both arrays.
 *
 * @param arr1 The first array
 * @param arr2 The second array
 * @return A set containing the common elements of both arrays
 */
fun createSetFromIntersection(arr1: List<Any>, arr2: List<Any>): Set<Any> {
/**
 * Given two arrays, create a set containing the elements that are present in both arrays.
 *
 * @param arr1 The first array
 * @param arr2 The second array
 * @return A set containing the common elements of both arrays
 */
fun createSetFromIntersection(arr1: List<Any>, arr2: List<Any>): Set<Any> {

    // Find the intersection of the two arrays using set operations
    val intersection = arr1.toSet() intersect arr2.toSet()
    
    return intersection
}