ByteDance Interview Question

Dynamic Programming to search a maze.