Microsoft Interview Question

Code a spiral within a grid