Pergunta de entrevista da empresa SAP

Merging two sorted Arrays Array based question