add 1495, an interesting problem with BFS