Leetcode Implement Dynamic Pricing Algorithms Of Data