Uber Interview Question

Explain how UberPool’s pooling algorithm works to a five-year-old.