Pergunta de entrevista da empresa Google

Parking lot with x and parking spaces, dfs/bfs