Solve grid compromise spread with BFS | Lyft