Amazon Interview Question

Write an algorithm that helps with inventory adjustment and cost prediction