give integer array nums1 nums2 return array intersection each element result unique return result order Example 1input nums1 1221 nums2 22output 2example 2input nums1 495 nums2 94984output 94explanation 49 accept Constraints1 nums1length nums2length 10000 nums1i nums2i 1000