Why not to keep a separate collection for Free Slot like
Map<VehicleType, Queue> vechileTypeWiseFreeSlots
This will help us find free slots easily.
Why not to keep a separate collection for Free Slot like
Map<VehicleType, Queue> vechileTypeWiseFreeSlots
This will help us find free slots easily.