Google Interview Question

finding increasing by 1 sequence in 2D array