UST interview question

Related to matrix in apti