Pregunta de entrevista de Ascendeum

I was asked to write a program to create NXN Spiral matrix.