Pergunta de entrevista da empresa Block

it is about 2D Matrix