Priority Warehouse Stock Maximization - Coding problem | OneNoughtOne