Leetcode Implement Dynamic Pricing Algorithms Of Instagram