Interview Guides

You are building a system that helps delivery executives decide which restaurant orders to collect while moving along a straight road. The system should recommend the next best pickup choices as new orders arrive and conditions change.
Design a solution for delivery executives navigating a 1D road to collect orders from restaurants.