HubSpot interview question

Merge 2 sorted arrays and print k elements.