Citadel interview question

Maze problem involving a matrix and recursion