Implement A* Maze Search | Qualcomm Interview Question