DataArt interview question

How would I design a tiny-url service