Pregunta de entrevista de Kalepa

Leetcode medium question about matrix transformation