Leetcode Implement Dynamic Pricing Algorithms For Rubiks Cube