Company: Flipkart_3aug
Difficulty: medium
Spiral Alphabetical Titans Problem Description At a game fair, a group of students plays a game called Spiral Alphabetical Titans . You are given two integers M and N , where N divides M . Create a square matrix MAT of size M x M and divide it into smaller square blocks of size N x N . This gives a grid of (M / N) x (M / N) blocks. Fill MAT with the uppercase letters A , B , ..., Z , then A again, and so on, as follows: The blocks are filled one at a time, each one completely, in anticlockwise spiral order starting from the middle block of the grid of blocks. Inside a block, the cells are filled in anticlockwise spiral order starting from the middle cell of that block. The letters run on from one block to the next; they do not restart at A for a new block. After Z the next letter is A . Print the final matrix. Spiral order The same rule is used for the grid of blocks (side k = M / N ) and for the cells of one block (side k = N ). Directions are as seen on the printed matrix: up is towa