give array arr1 arr2 element arr2 distinct element arr2 arr1sort element arr1 relative order item arr1 arr2 element appear arr2 place end arr1 ascending order Example 1input arr1 231324679219 arr2 214396output 222143396719example 2input arr1 2862284417 arr2 222886output 2228861744 Constraints1 arr1length arr2length 10000 arr1i arr2i 1000all element arr2 distincteach arr2i arr1