#bfs

▲ 01 solution