BigStep interview question

Design and explain a url shortner and how will it work