Pregunta de entrevista de Braze

They asked me to implement a spiral matrix algorithm.