Block interview question

it is about 2D Matrix