Qualcomm interview question

Write a function in C to merge two sorted arrays into a single sorted array.