Pergunta de entrevista da empresa Amazon

Leet code style problems of greedy and bfs, dfs