Microsoft Interview Question

Write a function that takes a two-dimensional array of integers as an input, where the array represents a maze.The top-left corner of the maze is (0,0) and the bottom-right corner is (n,n), where n is the length of one side of the array. The array elements are either zero or positive integers. Zeroes indicate walls that block the way, while positive integers indicate open spaces that can be traversed.The function should find a path from the start to the end of the maze, moving only up, down, left, or right, and avoiding walls. The function should return the sum of the integers along the path. If there are multiple paths, the function can return any one of them.