Tableau Software interview question

Write a function that takes two sorted arrays and merges them to create a sorted array.