HubSpot Interview Question

given two sorted lists and k, merge the lists up to k elements.