Amazon interview question

There were Algorithmic exercises connected to inventory