class Solution {
    func intersection(_ nums1: [Int], _ nums2: [Int]) -> [Int] {
        let set1 = Set(nums1)
        let set2 = Set(nums2)
        let intersection_set = set1.intersection(set2)
        return Array(intersection_set)
    }
}
