NVIDIA interview question

Print a spiral matrix