Meta interview question

Solve a Key-Door Corridor Maze