MAQ Software Interview Question

write a C program on spiral matrix