Split N^2 numbers into N groups of equal sum
Given an even number N. The task is to consider numbers from 1 to N2, split them into N groups of the equal sum.Examples: Input: N = 2 Output: {1, 4}, {2, 3} Two groups of equal sum are 1, 4 and 2,3 Input: N = 4 Output: { 1, 16} { 2, 15} { 3, 14} { 4, 13} { 5, 12} { 6, 11} { 7, 10} { 8, 9} Approach: