Pergunta de entrevista da empresa HubSpot

Two sum coding challenge, time complexity questions