Leetcode Activity Selection Problem Algorithm For Rubiks Cube