Block Interview Question

it is about 2D Matrix