Fanatics interview question

Searching a two dimensional data structure for neighbors with contiguous values.