Arrange the 2nd array in ascending order
6,3,1,8,3,7
1st element in the array1 is 6
so we put it in 2nd array
nxt is 3
so we shift 6 1 place and put 3 infront of it
it may be tiresome for this prob
but if the array is bigger then it'll decrease the time complexity
since tima cplxity of bin...