XPO interview question

Merge and sort two arrays