Given an array and group them as a possible sum.
Input Only this array : [1,2,3,4,5] Output : {[5,1] [4,2]} {[3,2] [4,1]}
Is there any way to solve this pro