Infogain Interview Question

write a program to merge two unsorted arrays and the resultant array must be sorted.