Rod Cutting Algorithm For Rubiks Cube