HubSpot interview question

DSA question: merge 2 lists