LLD - Design — Library Management System
A developer wrote this code to release expired holds:
for hold in holds:
if hold.expiration_time < current_time:
holds.remove(hold)
What is the main issue with this code?