Pregunta de entrevista de Amazon Web Services

leetcode style with BFS tree