Pergunta de entrevista da empresa Magic Leap

A leetcode question about matrix and dfs.