Leetcode Activity Selection Problem Algorithm For Rubik Solver