Amazon interview question

To code a search algorithm to find and close boxes in the amazon storage systems.