Glovo Interview Question

I had a specific task that required logical thinking and counting.