Uber interview question

How would you solve (DESIGN QUESTION)?