how to place exactly 2 elements in every 2x2 sub array in nxn int array such that the sum is maximum?
for example, if you have 3x3 array [5 1 4] [1 8 2 ] [1 7 1] you will