Applied Intuition Interview Question

BFS problem (related with autonomous vehicles)