LLD - Design — Food Delivery System
Given a system where agents are assigned based on proximity, what will be the output if all agents are busy?
AssignAgent(order):
nearest = FindNearestFreeAgent(order.location)
if nearest is None:
return "No agents available"
return nearest.id
