Pregunta de entrevista de Oracle

I was asked to design a tiny URL.