HubSpot interview question

merge two sorted array and follow up