give 0indexed integer array nums1 nums2 return list answer size 2 whereanswer0 list distinct integer nums1 present nums2answer1 list distinct integer nums2 present nums1note integer list return order Example 1input nums1 123 nums2 246output 1346explanationfor nums1 nums11 2 present index 0 nums2 nums10 1 nums12 3 present nums2 therefore answer0 13For nums2 nums20 2 present index 1 nums1 nums21 4 nums22 6 present nums2 therefore answer1 46example 2input nums1 1233 nums2 1122output 3explanationfor nums1 nums12 nums13 present nums2 since nums12 nums13 value include answer0 3every integer nums2 present nums1 therefore answer1 Constraints1 nums1length nums2length 10001000 nums1i nums2i 1000