LLD - Design — Food Delivery System
What will be the output of this pseudocode snippet for assigning agents?
agents = [Agent1(busy), Agent2(free), Agent3(free)]
AssignAgent(order):
for agent in agents:
if agent.status == "free":
return agent.name
return "No agent"
print(AssignAgent(order))
