Wine Rack interview question

Time available you can work