Pergunta de entrevista da empresa Fanatics

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