Amazon interview question

Newsvendor model, Convex Optimization algorithms, Leetcode easy