Glovo Interview Question

Optimization problem with large amounts of data