Pergunta de entrevista da empresa Commonwealth Bank of Australia

Given two sorting arrays, how do you write a program to merge these two arrays into a resultant array along with maintaining sorting (Without using any built in functions)