Leetcode Implement Dynamic Pricing Algorithms In Rubiks Ball