Goldman Sachs Interview Question

The relationship between different matrices and another queue question.