Microsoft interview question

Design a URL shortening business, and then code the core convert/fetch function.