Nearest Exit from Entrance in Maze — CaffeCode