Question d’entretien chez Microsoft

Create a function to solve the following matrix.