Google interview question

How to design a redirect url system