MAQ Software Interview Question

write program on spiral matrix.