Hudson River Trading Interview Question

Depth first search in a 2D array