Walmart interview question

System design: please design TinyURL.