Salesforce interview question

System design question about URL shortener