Pregunta de entrevista de Uber

How would you solve (DESIGN QUESTION)?