Pregunta de entrevista de Attenti

Recursive question with matrix, writing code is not required