Intuit interview question

Using DFS to solve a maze question.