LLD - Design — Library Management System
Consider this pseudo-code for confirming a hold:
if hold.exists(hold_id) and not hold.is_expired(hold_id):
reservation.create(hold.resource)
hold.remove(hold_id)
return "Confirmed"
else:
return "Failed"
What will be the output if the hold has expired?