Gladly Interview Question

How would you design URL shortening website