Epic Interview Question

See Spiral matrix on LC