Question d’entretien chez Google

Parking lot with x and parking spaces, dfs/bfs