Cloudsoft interview question

how would you build a tinyurl web forwarder