Example:
in = magic(5)
in =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9 out =
23 5 7 14 161 player likes this problem
7 Comments