Pergunta de entrevista da empresa HubSpot

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