FarMart interview question

Url shortener system design problem