GlobalLogic Interview Question

Write a program to print spiral matrix?