Musikaar Interview Question

Given 2arrays. Merge them and sort them without using java apis.