HubSpot Interview Question

Merge 2 sorted arrays and print k elements.