Leetcode Implement Dynamic Pricing Algorithms For Reinforcement