Pergunta de entrevista da empresa LinkedIn

How would you design a URL shortener?