Google interview question

Code a maze and solve it