This code will traverse the matrix spirally
This code will traverse the matrix spirally