Cisco interview question

merge 2 sorted arrays