Question d’entretien chez Google

I was asked to write an efficient algorithm to solve a maze problem.