Microsoft interview question

Design algorithm for the game Rubik Cube