Microsoft Interview Question

spiral traversal of 2d matrix