Leetcode Implement Dynamic Pricing Algorithms In Rubiks Cube