Pregunta de entrevista de Hudson River Trading

Depth first search in a 2D array