Glovo interview question

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