result for arr1: 1,2,3 result for arr2: 1 result for arr1: 1,2,3 result for arr2: