ChatGPT - Bidirectional BFS Algorithm