Virtusa Interview Question

Question about arrays and sorting. A & B are two integer arrays. Put their values into new array and sort it.