Pergunta de entrevista da empresa Amazon

Typical algorithm problems about array and DFS/BFS