EDIT: I do not want your code! just help me think of a nice way to do it :)
I have a string with 25 characters: ABCDEFGHIKLMNOPQRSTUVWXYZ
and I want to create a matrix5*5 given a position and a direction, position can be one of the corners and direction can be clock or counter clock.
so if I gave this arguments: create((0,0), clock)
I want to recive: ["ABCDE", "QRSTF", "PYZUG", "OXWVH", "NMLKI"]
and I could then print it and recieve:
A B C D E
Q R S T F
P Y Z U G
O X W V H
N M L K I