Google Interview Question

Spiral matrix III, Leetcode Question