Redfin Interview Question

Outward spiral matrix