In this challenge, your task is to input a rectangle ASCII pattern (You may assume only printable characters need to be handled, and you may assume a trailing newline or not), C4_4 symmetrify, and output it.
Here, C4_4 symmetric means symmetric under 90-degree rotation around a corner of the corner character. The corresponding "symmetrify" process is copy and rotate 90-degree clockwise three times, and then put all four copies together. For the precise arrangement, you can look at Test Cases.
Test Cases
Input:
asdf
jkl;
Output:
ja
ks
asdfld
jkl;;f
f;;lkj
dlfdsa
sk
aj
Input:
.O.
..O
OOO
Output:
.O.O..
..OO.O
OOOOO.
.OOOOO
O.OO..
..O.O.
Input:
gc
oo
ld
fe
Output:
gc
oo
ldflog
feedoc
codeef
golfdl
oo
cg