Requirement:
To distribute a list of sorted numbers in evenly sized group based on the sum which will be fixed.
For example
4 11 16 18 49 74 90 100 101 --> Sorted list
Sum = 100 --Fixed
Groups will be
Set1 = 103
Set2 =101
Set3= 100
Set4= 90,4 -- as 90+4 <100 and 90+4+11 >100
Set5=74,11-- as 74+11 <100 and 74+11+16>100
Set6=49,18,16-- as 49+18+16 <100