Musikaar interview question

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