Cisco Interview Question

backtracking problems. Calculate no. of paths in a matrix(maze)