Google Interview Question

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