Uber Interview Question

How would you solve (DESIGN QUESTION)?