Pregunta de entrevista de ByteDance

It was about DFS and hash map