Retalon interview question

Write a simple algorithm to allocate inventory between stores.