Robinhood Interview Question

Create a spiral matrix with continuous numbers from 1-n