HubSpot Interview Question

Two sum coding challenge, time complexity questions