Pergunta de entrevista da empresa AIRA MATRIX

Merge two sorted array upto a given number of elements for both the array