Google Interview Question

How to design a redirect url system