Question d’entretien chez AI Gaming

How would you write a program to solve a Rubiks cube?