/**
 * This exercise requires you to find the intersection of two lists using list slicing and compare it with another list.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return True if the intersection of list1 and list2 is equal to the provided list3, False otherwise
 */
fun intersectionSlicingEqual(list1: List<Int>, list2: List<Int>): Boolean {

    val intersection = (list1.toSet() intersect list2.toSet()).toList()
    val list3 = listOf(4, 2, 9, 3, 1)
    
    // Compare intersection with list3 using list slicing and the equal operator
    return intersection == list3
}
/**
 * This exercise requires you to find the intersection of two lists using list slicing and compare it with another list.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return True if the intersection of list1 and list2 is equal to the provided list3, False otherwise
 */
fun intersectionSlicingEqual(list1: List<Int>, list2: List<Int>): Boolean {
/**
 * This exercise requires you to find the intersection of two lists using list slicing and compare it with another list.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return True if the intersection of list1 and list2 is equal to the provided list3, False otherwise
 */
fun intersectionSlicingEqual(list1: List<Int>, list2: List<Int>): Boolean {

    val intersection = (list1.toSet() intersect list2.toSet()).toList()
    val list3 = listOf(4, 2, 9, 3, 1)
    
    // Compare intersection with list3 using list slicing and the equal operator
    return intersection == list3
}