AJIO interview question

find the shorted path in a given maze.