IBM Interview Question

Matrix related. Questions and array