Extend BFS maze solver with keys and arrows | Meta Interview Question