HubSpot interview question

Design a system for shortening URLs