Glovo Interview Question

asked to solve a business case live