Gladly interview question

How would you design URL shortening website