Pregunta de entrevista de Yelp

System design and a simple algorithm question.