Braze interview question

They asked me to implement a spiral matrix algorithm.