Salesforce Interview Question

A question based on matrices and one on arrays