Retalon Interview Question

Write a simple algorithm to allocate inventory between stores.